LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb-6008 limit switches analog I/O

ya the limit switches are closed by the table, but the analog input you said was open, how would i close it?
0 Kudos
Message 11 of 19
(1,426 Views)
Open - meaning open circuit. Your design has no voltage connected to the analog input when the switch is open. With my suggestion, the analog input always has a voltage present. An open circuit on an analog input is bad because the voltage read by the DAQ card will be undefined. Do a search for 'ghosting' to see the problems associated with leaving an analog input unconnected. Avoid all of those problems by using the pullup.
0 Kudos
Message 12 of 19
(1,424 Views)

could you please supply a sehematic of where the  pullup resistorwould be placed in relation to the rest of the circuit, or could i just use the +5V from the digital side??

 

Thanks

0 Kudos
Message 13 of 19
(1,420 Views)
The 6008 has a dedicated +5 output on pin 31. Use that, an analog output, a digital output, an external source, etc. The +5 output can source 200ma. Since I = V/R, use pullup values that do not exceed the max (i.e. 1K). The analog and digital outputs can source much less current so pin 31 would work best.
0 Kudos
Message 14 of 19
(1,415 Views)

thanks! so just put a 1k resistor on the wire from pin 31, then put that to the switch, and then from the switch the AIo+ (pin 2)... ??

0 Kudos
Message 15 of 19
(1,411 Views)
Yes, and ground the other side of the switch.
0 Kudos
Message 16 of 19
(1,408 Views)

chers dennis... very helpful!! thanks:manhappy:

 

0 Kudos
Message 17 of 19
(1,394 Views)
do i have to ground the common of the switch is it???
0 Kudos
Message 18 of 19
(1,393 Views)
You have to wire the switch just like in the schematic.
0 Kudos
Message 19 of 19
(1,380 Views)