Digital I/O

Showing results for 
Search instead for 
Did you mean: 

USB 6008 digital output signal

Go to solution

I am VERY new to LabView and have been racking my brain trying to get a digital output signal from my USB 6008.  All I want to to is be able to get a +5 V signal from my digital output when I click a button.  This signal will open a valve on a system I am designing so when it is pressed it needs to stay open until I press the button again.  It sounds pretty simple to me but I am just not too familiar with LabView.  Please help!




0 Kudos
Message 1 of 21
Accepted by topic author Stripling07

You should first take the LabVIEW tutorials and then look at the Getting Started with DAQmx links.


The simplest program would be with the DAQ Assistant. Drop it on your block diagram and then select Digital Output>Digital Line. Select the line you want and when the wizard completes, click Okay. Wire a Boolean to a Build Array and the output of that is  wired to the Data input. That's it. You can test the output in MAX (Measurement & Automation Explorer) with the Test Panel. Do NOT test with your valve connected. Your valve may require more current than the 6008 can provide.



Message Edited by Dennis Knutson on 06-08-2010 09:59 PM
Message 2 of 21

Thank you for your help, I guess the mystery is in that boolean thing between the true/false button and the DAQ assistant.  What is that and where to I find it.  Again, thank you, I have read and worked through a lot of the tutorial, but I am very confused..


Thanks again! 

0 Kudos
Message 3 of 21
It's the Build Array function. Only necessary when you use a DAQ Assistant since it's not flexible enough. When you use the lower level DAQmx functions (i.e. DAQmx Write), it is not required.
0 Kudos
Message 4 of 21

Thank you so very much! I have found success! I only have one more question.  I have 15 valves in this system and I would hate to have to do this 14 more times, is there any way I can configure the DAQ assistant to handle all 15 valves at the same time?  They all need to be individually controlled (some open and some closed at various times).  Thanks a ton for your help



0 Kudos
Message 5 of 21

Hi Stripling07,


You will do multiple digital output lines similar to how you do a single line. For four output lines, it will look something like this:




But be sure that you configure your DAQ Assistant for multiple output lines:


Best regards,
Rohan B
0 Kudos
Message 6 of 21
It WORKS!! Thank you so much! 
0 Kudos
Message 7 of 21
Ever look at the specs? The 6008 does not have 15 digital outputs. It only has 12. It only has 2 analog outputs so you are 1 short.
Message 8 of 21
Dennis is right. You will not be able to do 15 digital outputs with the 6008. In addition as Dennis mentioned before, be sure that the current drive from the USB-6008 is enough to drive your valves before connecting them. I believe each line can drive a max of 8.5mA (shown in the specs).
Best regards,
Rohan B
0 Kudos
Message 9 of 21
I am sorry, I failed to mention I have 2 USB-6008's.  I have 7 channels off one and 6 off the other.  I also have external circuitry to activate the solenoids of the valves.  Max current draw is somewhere about 100 mA.  Thanks for your concern and help.  
0 Kudos
Message 10 of 21