Labview USB6009 DAQ to program digital potentiometer

Hi all, 
I am trying to use Labview 2009 Student Edition and a USB6009 DAQ device to program a digital potentiometer: MAX5386LATE+ http://datasheet.octopart.com/MAX5386LATE%2B-Maxim-datasheet-8528562.pdf
From the datasheet, I see that it needs 3 inputs in order to change the resistance: 
1) Clock in
2) Data read enable
3) The bits that correspond to wiper position (resistance)
Roughly, what I want to do is program three digital outputs of the USB6009 so that it can connect to those three pins of the digital potentiometer.  I want to change the potentiometer's wiper position so that it has three distinctive resistances, lets just say 30 Ohm, 330 Ohm, and 3.3 kOhm (just for an example).  Also I want the potentiometer to change to those resistances periodically.  I.e. start at 30 ohm and change to the next one after 30 seconds and then the next one after another 30 seconds and then back to 30 Ohm again.
Can anyone give me a general hint as to how I should go about doing this?  What modules/programming techniques should I look into for this application?
Thanks, 
Kevin

Hi Kevin,
In trying to accomplish this task, the USB 6009 is not capable of generating periodic signals. Below is a reference to the specifications of that device.
NI USB-6008/6009 User Guide and Specifications
http://digital.ni.com/manuals.nsf/websearch/7781F8E689519ED786257411006FB09F
Based on the information you have provided, you will need a device capable of pulse train generation which requires at least 2 counters. There are different variations of hardware we offer that can do this depending on other factors including resolution, frequency, and form factor. You can view and compare these devices at ni.com/daq.
Have a great day,
Jordan

Similar Messages

  • Digital Potentiometer control in Labview with Field Point Unit

    Hi..
    I need some help on programming the LABVIEW to control the digital potentiometer. 
    It is AD7376 which 4 channels are used to control the digital potentiometer, and Field Point Unit FP-DO-403 thr. RS232.
    – Channel 0 (POT_D), Channel 2 (POT_CS), Channel 3 (POT_Clk), and Channel 7 (POT_R).
    -SDI (serial data input) contains 7 data bits. The first is the MSB.
    -ClK provides the correct time reading the serial data.
    -CS (chip select) only allows the reading of the data. CS is on 0 during the loading. POT-CS is used when 7 bits data is finish loading.
    - POT_R is used as CLEAR.
     After the calculation depending of the different conditions, 7 data bits data is created and changed to the opposite numbers (1-->0, 0-->1).
    For example; if the calculated binary number is 1001011, the the output 7 bits data is 0110100
    so Those data has to go to SDI (Channel 0 (POT_D)) starting from 0110100 and for each bit CLOCK has turn on and off to shift the bits controlled by Channel 3 (POT_Clk).
    For example,
    0 ---> POT_D then POT_Clk -->On/Off
    1---> POT_D then POT_Clk -->On/Off
    0---> POT_D then POT_Clk---> On/Off
    Can this be done automaticaly? Could you help me on this?
    I was able to program it until producing 7 binary bits (refer to the attached file) but by Giving 7 different bits at once to ONE channel, I get error..
    Message Edited by Black Comb on 11-01-2007 08:51 PM
    Message Edited by Black Comb on 11-01-2007 08:54 PM
    Attachments:
    AD7376toBIN44.vi ‏49 KB

    Black,
    Here is a concept for how to do it.   Did not have time to look at data sheet for IC but this should be a good starting point.
    Attachments:
    Create inverted 7Bit Array.vi ‏19 KB

  • How to adjust the value of the digital potentiometer such that it outputs a desired value of voltage.

    Hi all, I have a digital potentiometer in a circuit which needs to be adjusted to control the voltage it receives. Its a 2 channel 256 position AD5207 dig pot. I need to adjust the wiper position of the dig pot(which we need to do using labview)such that it outputs a particular desired voltage value.For example, if the input to the pot is 200mV, then we need to adjust the pot such that it sends out a value of 50mV. How can we do that?? Please help. The DAQ iam using is PCI-MIO-16E-4. Thank you......Ausuri

    Hi Chaitanya,
    We never know who our audience is when we answer these questions. There has ben quite a few occations when I have insulted people because my answers was too basic.
    The creattion dates on the files show that "project xx SPI.vi" has the latest mod date.
    Open it and take a look at the diagram.
    Put the VI in execution-highlighting mode (click the light bulb) and the run the VI and watch what happens.
    There are pictures included in the diagram that illustates what is happening.
    If you have specific questions after watching the VI run, ask away.
    This is a wonderful example!
    I would have charged big bucks for this example.
    Good work Wha!
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to detect keystroke and control a digital potentiometer?

    Dear All,
    I want to use PCI-1200 to control a Xicor X9C103P digital potentiometer.
    The procedure is as follows: If the computer detects any keystroke from
    either UP or DOWN arrow keys, it send a chain of digital signals to a
    digital potentionmeter to increase or decrease its resistance accordingly.
    Each keystroke control the potentiometer to change a fixed amount, say,
    around 500 Ohm. How to detect these keystrokes using LabVIEW and
    send to digital potentiometer through PCI-1200?

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • The labview 7.1 can programing for fpga?

    The labview 7.1 can programing for fpga our I need buy the labview 8 fpga?
    How much the software labview 8 and the fpga targets?

    Hi RN,
    LabVIEW 7.1 can be used with LabVIEW FPGA 1.1.  LabVIEW 8 (the version currently sold) works with LabVIEW FPGA 8.0, which you can find more information on at http://www.ni.com/fpga/ .  There are several options for FPGA targets, and you can find information on these at http://www.ni.com/fpga/hardware_targets.htm .
    Best regards,
    David H.
    Systems Engineer
    National Instruments

  • Why does labview close whilst my program is running?

    I am running a program doing data acquisition using the PCI-6602 cards. Everything works fine but somehow after I have been doing acqusition and saving the data for approximately 2 days, I find out that the program has been stopped by LabVIEW and find all the windows closed including labVIEW. In my program I did not use any of the exit functions provided with LabVIEW but somehow, labVIEW exits by itself without issuing any error messages. Why is this happening?

    I experienced a problem with LabVIEW 7.0 shutting down unexpectedly.  It may be completely unrelated, but I thought I'd mention it just in case.  My problem was that I was calling a DLL that used a reference handle.  At the end of my test (using TestStand), the test closed, and thus the DLL was unloaded from memory as well.  Because there was still a handle open to this DLL, LabVIEW must not have known how to handle this and shut down (or it confused Windows and it shut down LabVIEW).  In any case, the solution was to have a VI stay in memory which calls this DLL, and put the DLL in a the true case of a case statement wired with a constant false.  Thus, the DLL is never actually called by this VI, but it keeps the DLL in memory.
    So if you call any VIs dynamically, etc., where a VI could be unloaded from memory, check those VIs and make sure you aren't leaving any references open or something like that.
    Hope this is in some way helpful.
    Tom

  • Using LabView to run VB program with parameters

    Hi,
    It's my first message here so I hope I am doing things correctly. I tried to do some research before asking and I found a lot of good informations but right now, I seem to be stuck.
    I am quite new to LabView, I did few VIs here and there but nothing really "serious". I am currently working on a LabView interface that deals with VB, Excel macros and Data extraction from Text file.
    The VB program is in charge of a motor position, then, some Excel macros are used to do some measurement and the results are written in a text file that I use to plot some graphs.
    The VB program I made give the window I put in the picture in the attached files. Basically, you have to enter some values in those TextBox then click on Move and the motor will move. When you click on the button Home, the motor moves back to the position "0", no need of the two TextBox. In my labview interface, I created two ComboBox that contain all the possible values for both of the TextBox of my VB program. What I would like to do, when I click on my "Measure" button on LabView that initiates the VB program, is that it can fill the two TextBox from VB with the data entered in my LabView ComboBox and then run the program, simulating a "click" on the Move button.
    Right now, I found a VI (included in the attached files) that runs my VB program from LabView (I use it as a Sub-VI) but I still have to manually put the values in my VB program. My goal would be that when I click on my LabView button to start my measure, the motor moves but the VB program doesn't show up for the user to manually enter the values he wants.
    I hope I was clear but if you need any clarification.
    I did the the VB program myself.
    I can also link the LabView interface I already created if need be.
    Thanks for your help,
    Baptiste
    Attachments:
    Moteur.png ‏5 KB
    lancerEXE.vi ‏9 KB

    First, thank you for your answers.
    I know that I don't need to use VB or LabView. I just want for myself to be able to use LabView to manage a program in VB, one in VBA and use data from a text file. I know I could write everything in VBA and that would get the job done. The thing is I want to get away from VBA and Excel as much as I can. In the future, the plan would be to re-write my VBA program with LabView but as of now, I just want to use LabView to manage everything. I know I don't really need it but I want to learn how to do it and have something that works.
    So I would like to know if there is way to do what I wish to do, running my VB program with parameters coming from LabView.
    Thanks

  • Installing labview before DAQ card?

    Hi,
    We've just bought LabView 8.2 and a new DAQ card, PCI 6281 M series...
    What I was wondering was whether there is any order in which these need to be installed. At the moment there is no pre-existing version of LabView or DAQ Software on the computer.
    I have just read that the drivers that came with the DAQ card need to be installed before the card is inserted into the PC, but am not sure if LabView is supposed to be installed before or after the card or if it even makes any difference.
    Thanks,
    Harry

    Thanks!!

  • LabVIEW is an irrelevant programming language

    I have just posted a new article on my blog:LabVIEW is an irrelevant programming languageThanks,
    -Jim

    AK2DM:  The books would make a nice Xmas or birthday gift.    Too bad my birthday won't come again until next year. 
    Anyway, the title of this subject is grossly misleading.  According to the article study, it isn't fair to say that Labview is an irrelevant programming language.  It would be more appropriate to say that sales of Labview books are irrelevant.  Labview, as compared to other programming languages, is so easy to learn and use that many people just don't need to buy a book.  Many people learn from their peers, from NI courses, and just from the tutorial and help files that come with Labview.  There is just not a big demand for Labview books.  I would say they are very useful, however they just aren't that necessary.  To say a programming language is irrelevant because its book sales are not popular is not at all appropriate.  In fact, the popularity of the language despite its lack of book sales is a testament to how easy it is to learn and use.  This, in my opinion, makes it very relevant.
    - tbob
    Inventor of the WORM Global

  • GPIB Labview NI-DAQ, Micro 1401 and Windows 7

    Does anyone know if:
    a) GPIB, Labview/NI-DAQ is essential for running a Micro1401 unit?
    b) If it is, will it work in Windows 7 please?
    Thanks loads!!!!!
    Jo

    If you mean this then I cannot see any easy way of making it run in LabVIEW... unless you have an older version of the Micro1401 that has a GPIB interface?
    Mark B
    ===If this fixes your problem, mark as solution!===

  • How do I run a J-type thermocouple to the usb-6363 DAQ and program labview to measure temperature?

    I have a usb-6363 DAQ and a J-type non-contact thermocouple that I am looking to connect and measure temperature through. However, the DAQ does not have any T/C inputs, which is needed to measure in the thermocouple temperature. I am connecting the thermouple to an analog input (+/-) and I am not looking to buy an amplifier, converter or any other hardware. I believe there is a way to program labview to read in the voltages of the thermocouple and convert it into accurate temperature readings. Any help/ideas?

    Hello George,
    This tutorial should step you through the basic process of configuring the device and connecting the thermocouple:
    Tutorial: Connect Thermocouples to a Data Acquisition (DAQ) Device
    http://www.ni.com/gettingstarted/setuphardware/dataacquisition/thermocouples.htm#Connecting a Thermocouple to Your Device
    From there, there are a number of things you can do- I'd recommend taking a look at the LabVIEW shipping examples (Help>>Find Examples...) as well as the DAQmx getting started tutorials:
    Getting Started with NI-DAQmx: Main Page
    http://www.ni.com/white-paper/5434/en
    At first glance, the 6363 you're using should have enough resolution to acquire usable data from a thermocouple- if you attempt reading raw voltages be sure that the acquisition range is configured for +/- 0.1V, though.
    Regards,
    Tom L.

  • Interfacin​g LabView compatible DAQ board w/ third party DAQ boards

    Dear NI-team and board-members,
    In my current project I'm using a third party Direct Digital Controller which supports customizable Programmable Logic Control (PLC) via a graphical programming software. Therefore, I'm acquisitioning temperatures (etc.) from my miniature-HVAC application via physically attached and mounted sensors, connect them to a dedictaed analog input (0-10VDC typically) and in further assign the analog input to some selected PLC modules with the help of the graphical programming software, and finally after doing the computation (calculator block) or control (Proportional-Integral-Derivative block) I assign the resulting control signal to a dedicated analog output (typically 0-10VDC as well).
    So far for the previous history, NOW I actually want to be able, to manipulate these analog values in a way, that I'm not interested in the physical acquisitioned value from my real-time operating equipment (e.g. temperature sensors), more than that, I'm interested in assigning a certain level (e.g. +5 VDC) to that dedicated analog input, which in turn would represent a temperature e.g. in this simple case (+5VDC) 50degF.
    Now to the questions, can I possibly interface the physical ANALOG INPUT (0-10VDC) of my third party DDC unit, with the ANALOG OUTPUTS (0-10VDC) of a NI DAQ board? In that way, I'd be able and with some additional help of LabView to program time intervals, where I raise the voltage level every 5 minutes by 1VDC, and in turn can proceed with my intended purpose.
    To sum that up, are there physical limitations (e.g. ground loops, damage equipment, shorting) connecting an analog output of one board, to the analog input of another board?
    Also, which DAQ of NI might be best suited for my intended purpose, using a NI DAQ board for "simulating" temperature values (etc.) onto the analog inputs of another third party board.
    Thank you,
    Sandro

    Hi Sandro,
    If both boards are in the same computer I wouldn't be too worried about ground loops or damaging equipment. The ground reference to the AO board will be the same ground reference as the computer and AI board. You would have to check with the specs for your third party AI board to see what overvoltage protection it has and whether or not our AO board could give a voltage high enough to damage it.
    I would suggest one of our AO boards to do the job. Depending on what kind of control and precision you want, we have static update boards available in PCI form. The static board will be cheaper but you are limited to software timed voltage updates (instead of clocked buffered waveform output).
    http://sine.ni.com/apps/we/nioc.vp?cid=12550〈=US
    I would suggest the AO board (PCI-67xx) instead of our M series multifunction boards because the AO boards have 8 or more output channels. The multifunction boards only have two output channels.
    -Sal

  • DAQ "E" series Digital I/O configuration

    When I use the DIO Config VI the first time in LabVIEW, any I/O
    set-up as outputs momentarily turns-on. I am controlling relays with
    these outputs. Is there a way to prevent this momentary turn-on when
    configuring the digital I/O port?
    Thanks
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    In article <7rtn3k$d3h$[email protected]>, wrote:
    > When I use the DIO Config VI the first time in LabVIEW, any I/O
    >set-up as outputs momentarily turns-on. I am controlling relays with
    >these outputs. Is there a way to prevent this momentary turn-on when
    >configuring the digital I/O port?
    I had a similar problem with the PC-OPDIO board. Might be due to
    copying the i8255 PPI exactly, bugs and all. Or maybe just sloppy
    programming in their drivers. Never got a solution from NI. Clue
    for hardware makers: I/O lines should always stay in their power-up
    state until the user deliberately changes them! (And should stay
    the way the user left them after exiting, too!)
    In my case, either the lines went from all high to all low spontaneously
    when firing up Labview (actually, when loading any vi that used DIO
    sub vis), or the lines stayed high forever because they couldn't be written
    to! Depended on which version of NIDAQ was installed..... stupid.
    Chris

  • I want Labview DSP hardware for program download

    I want to know that wether the target specified for the Labview DSP module can be used in some other board by taking out chip from the hardware download board. Also I want to know how i can download the program created in Labview DSP module to the target chip. Is some hardware and cable available for this.

    Hi Ankit,
    Please refer to the following KB to see which targets are supported by LabVIEW DSP.
    http://digital.ni.com/public.nsf/websearch/AF9886D62684C05D86257101007F4647?OpenDocument
    A USB cable is used to connect to those boards so that the user can download the code to the embedded target. Currently, the LabVIEW DSP Module does not support custom DSP hardware even if the hardware has similar or identical peripherals to the supported targets.
    Hope that helps!
    Kalin T.
    National Instruments

  • How to stop a while loop in LabVIEW from a C program

    How to stop  a while loop in LabVIEW from a C code

    hi
    I think by creating dll you can stop the while loop from your C program.For that you just create dll (Dynamic Link Library) for the VI which has that while loop.
         Anyway can u please explain ur requirement clearly.

Maybe you are looking for

  • Unable to install Sharepoint Foundation 2013 in Windows Server 2012 for FIM 2010 R2

    HI, I am Unable to install Sharepoint Foundation 2013 in Windows Server 2012 for FIM 2010 R2, Before SharePoint Foundation 2013 installation I installed all prerequisite software that is required for SharePoint Foundation 2013 but when we run SharePo

  • Printer defaults in PS CS6

    When I go to print the default is let printer manage color. I have 3 printers that I use the same printer profile on is there a way to make the setting let Photoshop manage color and stay there. I'm constantly forget to set that alot and it prints a

  • Opening Acrobat 9 Standard Open Alot of PDF Windows

    When I click on the shortcut for Acrobat 9 Standard it open more pdf windows than my computer can handle and I have end taks it through the Task manager.  Why is it opening PDF files when I open the program with the shortcut.  Also how do I resolve t

  • Clean re-install of Snow Leopard on Macbook 2,1 - how to do, have Snow Leopard CD.

    I have an old (late 2006 or early 2007 I believe) Macbook 2,1 : Core 2 Duo.  Too old to upgrade to Lion.  Still good. Has been running slowly of late, would like to do a clean re-install of all the software.  Did re-install Snow Leopard off CD, but i

  • Bug in Aggregate Persistence Wizard with multiple hierarchies

    Hi, Let's say you have a dimension with 2 hierarchies. In example: product -> subcategory -> category -> all products product -> subtype -> type -> all products Then you run the "Aggregate Persistence Wizard" and generate the code for 2 aggregations,