LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use NI USB-6008 to lights up a LED with hardware?

Hi everyone here,

 

Im newbie labview user, i just got 1 question as state as the title i said, how to use NI USB-6008 to lights up a LED? if in labview only, i know how to make a led lights, but if including LED hardware, i dun know how to do. means i just using usb daq to lights up a single led, no need input, just digital output only, work in hardware too. i stuck at drug a DAQ assistant, after that i have no idea. after this work, how do i add a input button, to control the led? anybody can help me? if got VI for me to refer is better, coz im really new.

0 Kudos
Message 1 of 16
(8,575 Views)

Did the USB-6008 come with a driver?

You could do a very simple Analog Output.

Look under (in the function palette)

NI Measurements >> Data Aquisition >> Ananlog Output

 

Or look in the example finder, under  Hardware Input and Output.

Cory K
0 Kudos
Message 2 of 16
(8,572 Views)

Cory K wrote:

Did the USB-6008 come with a driver?.


That's what DAQmx is for. 

 

To OP: The simplest solution is to use the digital I/O lines. In fact, page 21 of the manual shows you how to connect up an LED to one of the digital lines.  For the DAQ Assistant all you would need to do is to select the line and specify the level: high or low. Quite simple.

Message 3 of 16
(8,558 Views)
hihi, i know to do build the hardware part, i just dun know how to write the graphical program in labview.
0 Kudos
Message 4 of 16
(8,534 Views)
hi somer, i know how to build hardware, but how to swtich true and false in daw assistant or any labview icon ?
0 Kudos
Message 5 of 16
(8,530 Views)
Hi Yong How,



In LabVIEW, go to Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Digital Generation, and open Write Dig Chan.vi to see an example of digital output that you can use for turning LED on.

If you cannot find DAQmx folder, it could be the case where you've not installed DAQmx driver after LabVIEW.

Then, you should install DAQmx driver come with USB-6008.



Regards, Kate
0 Kudos
Message 6 of 16
(8,514 Views)
Hihi, i know how to let the digital output high and low already, but if i wan to let the system work automatically, can someone teach me how to do it? izzit using array?
0 Kudos
Message 7 of 16
(8,511 Views)

Hi Yong Hoe,

 

In this case, you need to write your own algorithm to change boolean status of LED.

I recommend you to read through some LabVIEW tutorial from http://zone.ni.com/devzone/cda/tut/p/id/5241 so that you understand a basic of programming and how to use LabVIEW.

Then, you can go on with your project.

 

Regards, Kate

0 Kudos
Message 8 of 16
(8,509 Views)

Hi KateB, i can find the DAQmx example already, but the vi is too hard to understand for me, i just need 4 led blink automatically or sequencely, while my main point is it is work in practical, which means i will have 4 real LED in hardware.

Download All
0 Kudos
Message 9 of 16
(8,507 Views)
hihi, i had done a LED program with hardware, but it is randomly blinking, but i need to improve, i want blinking sequencely now, means i wan blink 1 to 2, 2 to 3, 3 to 4, etc...how to do it? izzit can use array to do it?
0 Kudos
Message 10 of 16
(8,488 Views)