LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make a simple 1 channel I/O with RS232?

Hy all,

I just want make a simple 1/0 output over RS232. How can I programme it in LabView? Noemaly we send datas over RS232, but I want just a High or a Low on the TxD (or may on DSR or CTS).

Thanks
Petric
0 Kudos
Message 1 of 6
(3,296 Views)
The VISA functions allow the control of DTR and RTS (outputts) using property nodes. Other lines are inputs. See the attached vi.
If you are using LV 6, the procedure is different. Just ask if you nedd help...

CC
Chilly Charly    (aka CC)
Message 2 of 6
(3,285 Views)


@chilly charly wrote:
The VISA functions allow the control of DTR and RTS (outputts) using property nodes. Other lines are inputs. See the attached vi.
If you are using LV 6, the procedure is different. Just ask if you nedd help...

CC


Thank you CC,

unfortunatly can't I open the VI. It tell's me it's Version 7.1 and I have 6.0.2.

Petric
0 Kudos
Message 3 of 6
(3,279 Views)
You are lucky, here is a 6.0 version ... I hope it works 😉

CC
Chilly Charly    (aka CC)
Message 4 of 6
(3,271 Views)
Thank you CC

now I can open it, but the voltage didn't change (I measured between GND (Pin5) and DTR (Pin4)) when I change the state. Which levels should I have with unknown, unasserted or asserted?

Petric
0 Kudos
Message 5 of 6
(3,261 Views)
Sorry, it works now!!
I tried it on a other PC (on the old, I have maybe a conflict with the device I normally run at the Com port...) The level is -11V for unasserted and +11V for asserted.

kind regards
Pertic
0 Kudos
Message 6 of 6
(3,248 Views)