Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Switching on LED using 9401

Hello,

 

In LV 2010 version, I'm trying to just gow an LED using 9401 I/O module. I'm using Mod2/DIO1 to connect a switch and Mod2/DIO0 to connect to an LED. The switch is used as a control and LED as an indicator. Mod2/DIO1 is set to write and Mod2/DIO2 is set to read. I compiled the program successfully and ran it but the LED did not glow both in the Front Panel as well as the Block Diagram. What could possibly the problem?

 

Also I attached the .vi file I made. Please check the file and make corrections if any. 

 

Thanks!

0 Kudos
Message 1 of 4
(5,289 Views)

If the software seems to be OK, check the hardware. How did you connect the LED to the digital output?

0 Kudos
Message 2 of 4
(5,262 Views)

I connected the positive of led to PIN 1 (DIO0) of 9401 and negative to PIN 14 (COM).

 

The hardware is detected and properly configured. Ido not know what could possibly be wrong with the hardware. I am new to it.

0 Kudos
Message 3 of 4
(5,250 Views)

The switch, as an input, needs to be read.

The LED, as an output, needs to be write.

 

You also need a power source to power the LED.

 

See pg 12 of the manual on how to properly connect the switch and the LED, just change the port pin assignments to the ones you are using:

 

http://www.ni.com/pdf/manuals/374068f.pdf

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 4 of 4
(5,244 Views)