LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write quadratic wave (+5v to -5v) to serial rs232 port?

Hello all
I have an optical switch with RS232 D15 interface. I am trying to build a vi to control that switch.
The switch has specs defining it's switching process as a 50 miliseconds quadratic pulse between 0V to 5V.
So my question is how can I create such a waveform in RS232 port, how can I controll the voltage and current?
 
Sincerely
Isaak 
0 Kudos
Message 1 of 3
(2,476 Views)

Isaak,

it's not clear for me what you need.

Maybe you can (ab)use the control lines RTS/DTE of your RS232 and additional hardware to limit the voltage output, however you shouldn't expect good timing with that.

Search the knowledgebase for RS232 to read about the Protocol and voltages you can get. A link to a device manual would help tooSmiley Wink

  

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


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

Isaak,

There are lots of things that I don't understand about your question; here are a few basic problems with your request...

I don't know what a "quadratic pulse" is - do you just mean a square pulse?

Of course a simple RS232 port is a serial data interface, and would not normally be used to generate voltage waveforms as such. 

Most RS232 ports wil have an output voltage of approximately 12V not 5V (also note: a zero data bit appears as +V and a one bit as -V) .

Mark H.

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