From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-08-2013 09:49 AM
Dear Friends, i need to switch on and off some device using some transistor ....ect. I would like to switch on/off using USB or RS232 from Labview... i just need to provice whethere 0 or 5 volts in order to do so..... please help me out.
Solved! Go to Solution.
06-08-2013 02:17 PM
The USB port provides some power at 5 V but it is not designed to provide direct control of a line as a logic signal.
RS-232 uses nominal voltages of +6 to +12 V and -6 to -12 V. Different implementations of the hardware may use voltages anywhere within that range but certainly incompatible with your 5 V requirement. Also, except for the handshaking control lines, the voltages are not maintained, but vary according to the baud setting.
You probably need some digital output device. If your timing requirements are less than 100 Hz or about 10 ms and can tolerate some jitter, something like the USB-6008 might work.
Lynn
06-08-2013 03:45 PM
Johnsold,
first of all thanks for replying, second i have seen some videos switching LEDs ON/OFF using RS232... any idea how that is done?
06-08-2013 04:54 PM
I have not seen those, but most likely they connect a diode and current limiting resistor in series with each LED. They probably use a handshaking line such as RTS because those will stay in one state after being set. The TD line changes according to the character being sent and is guaranteed to be in both states for each character because of the start and stop bits.
Lynn
06-10-2013 06:30 AM
here is a small test vi
Now take a DMM and check the voltage levels on the DTR and RTS line of you COM port
Should be 9 pole male sub D , take care not to shortcut some pins!!
measure between pin 5 (GND) and pin 4 (DTR) or 5 & 7 (RTS)
To ligth a LED I would start with a low current LED and a 10K resistor. If you have the LED running 😉 replace it with an optocoupler and a resistor to limit your current below 5mA. (Say (12V_level-1.8V_led)/5mA -> ~ 2.2k Ohm
06-11-2013 08:54 AM
Henrik,
More than very much thankful. Using it already ,just the unknown case causes labview error so i deleted the unknown case.
Thanks a lot 🙂