Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write a program to turn LED and IR on

Hi all,
 
I need some help on labview. Currently I'm using labview 6i and daq card is PCI-MIO-16E-1 (6070E). I had read a few threads about turning on and off LEDs but I'm still very confused. Hope someone can give me more advise.
 
I would like to design LV program to turn on and off my LED n IR. And would like to know how to connect my LEDs and IR to the board (CB-68LP)
 
I need to turn on RED LED, then turn off IR.
 
turn off red, then turn on IR
 
both on and both off.
 
The current driven is 25mA, resistors used is 200ohms.
 
Pls advise.Your help is greatly appreciated.
 
thanks
 
 
0 Kudos
Message 1 of 2
(3,090 Views)

Hi,

I strongly recommend that you upgrade to a newer version of LabVIEW. This will enable you to use the DAQmx driver, which will make programming your application significantly easier.

With that being said, the best way to control an LED is to use a digital output program. There are some great examples in the LabVIEW Example Finder for this. They will be under Help >> Find Examples >> Hardware Input and Output >> Traditional DAQ. Also here are the links to some other resources which should help you create this application:

Light Emitting Diodes (LEDs)
How Can I Interface My Digital Lines to an LED or a Switch?

Regards,
Hal L.

0 Kudos
Message 2 of 2
(3,077 Views)