Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I control serial power using LabView?

I need to use LabView to alter the voltage coming from the serial port. Is it as easy as writing to the serial port? I know that if you write to the serial port that it'll produce a binary number, does this binary number correspond to a voltage.
0 Kudos
Message 1 of 5
(3,704 Views)
The output pins of a serial port are either on or off. The output voltage should be about +/- 12V though you're liable to see some variation but you cannot change a logic one from +2V to +5V for example. There's no mechanism in the pc's UART to do such a thing. The binary output corresponds to a character (in the cse of the Tx line) or a control signal (i.e. Request to Send is either on or off).
0 Kudos
Message 2 of 5
(3,703 Views)
So you are saying that it is impossible because the power from the serial port does not vary?
0 Kudos
Message 3 of 5
(3,703 Views)
The logic levels vary between 0 and 1. The voltage associated with a logic level does not vary.
0 Kudos
Message 4 of 5
(3,703 Views)
If you want to create a scalable voltage value coming from the serial port you must have a Dig -> Analog conversion circuit.
If your goal is to vary a voltage from 1 - 10 vdc, then you must create:
1) a an external circuit that will convert/buffer digital serial interfaced binary values to analog values (ni makes these things)
2) labview code that transfers info to serial port. (driver/etc)
hope that helps!
did that answer your question?
Chances are if you have seen VI in the forest it hasn't fallen.
0 Kudos
Message 5 of 5
(3,683 Views)