Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to test DAQ USB6008 digital output

Hi, I am new to labview and DAQ. I wish to understand how do I test my DAQ 6008 to have a digital output? I wanted to test one of the digital output with a 5V led connect to a 1k resistor and to ground. Do I use the DAQ assist found in signal express? How do I configure it? For example, I choose a GND and p0.0

 

 

The main idea of this is because I got project which need me to have a digital output of binary code and a ground. I must use labview together with the control panel to give command and hence transfer this set of commands to DAQ digital output.

0 Kudos
Message 1 of 7
(5,356 Views)

The DAQ Assistant is a good place to start.  But once you get into the flow of things, look up some examples through the LabVIEW Example Finder (Help->Find Examples...) and do a search for digital output.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(5,354 Views)

Hi, i did try to do as you told, but still i could not found good example with usb6008. 

0 Kudos
Message 3 of 7
(5,341 Views)

Define 'Good'. The Write Dig Chan and Write Dig Port are simple and work fine with your device. You also have the test panel in MAX to do some testing with. The DAQ Assistant is also simple to use for such a basic task.

0 Kudos
Message 4 of 7
(5,337 Views)
There's a diagram in the manual on how to connect an LED to a digital output. There's also example programs available for toggling DO's.

Those also follow good coding practices, good idea to follow those guidelines when you're first learning LV.
0 Kudos
Message 5 of 7
(5,332 Views)

skip the leds all together, do a write/read to the daq itself and all you need is some wires...goto the ni find example>>daqmx>>digital generation>>write digital channel.vi (assign it port0)and then goto>>digital measurements>>read dig chan.vi, but assign it to a different port (port1). put both write and read in the same while loop...NOW YOU HAVE "VIRTUAL LEDS"! Smiley Very Happy

 

  • wire directly from p0.0 to p1.0..and so on, till p0.3 to p1.3.....

 

combo.pngHAVE SOME FUN NOW!!

0 Kudos
Message 6 of 7
(5,308 Views)

and if you dont like that...connect your daq dig output to a ULN2003 low side driver and its output to the cathode side of the led in line with your series resistor and an external power supply. USB 6009 can only drive 8.5 mah per line and use the write dig channel .vi and change the bools to data input.....Smiley Wink

 

combo.png

 

 

0 Kudos
Message 7 of 7
(5,296 Views)