LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting RS232 control lines programmatically

Hi,

I want to set the RS-232 Ring Indicator line through LabVIEW. Does anyone know the relevant commands we have to send to make it true.

 

 

 

0 Kudos
Message 1 of 12
(3,524 Views)

Hi RJ,

 

use a VISA property node and select Serial Settings -> Modem Line Settings -> RI state...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,522 Views)

Hi GerdW,

 

I'll be more specific this time.

I am communicating through TCP/IP protocol and simulating a MODEM.

In the Modem I need to set the Ring Indicator line as High.

Hope I have made myself clearer.

 

Thanks,

Runjhun

0 Kudos
Message 3 of 12
(3,514 Views)

Hi RJ,

 

so you want to simulate a non-existing RS232 port with it's non-existing additional lines? Do I understand that correctly?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 12
(3,511 Views)

Yup thats correct. I am communicating through Virtual COM Ports.

0 Kudos
Message 5 of 12
(3,508 Views)

Hi RJ,

 

when you communicate through COM ports (either real or virtual) use the above mentioned property node...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 12
(3,505 Views)

Thanks Gerd,

 

But I can't use this property in TCP/IP communication, correct ?

 

Runjhun

0 Kudos
Message 7 of 12
(3,502 Views)

Hi RJ,

 

please show atleast a picture of your BD as it's not clear what you are actually doing.

 

When you use serial ports for communication then you should be using VISA, hence you could use that property...

When you don't use serial ports virtual or real) then you don't have this hardware-related option...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 12
(3,496 Views)

Hi Gerd,

 

I am actually Simulating a Modem in my program through TCP/IP and exchanging some AT Commands.

 

Now when I send 'RING' AT Command to the port the Ring Indicator line should come high .

If some h/w was there it would take care of itself but as there's no hardware I need to send some commands to make this RI control line high.

 

 

 

 

 

0 Kudos
Message 9 of 12
(3,493 Views)

Hi RJ,

 

which RI line should be set to HIGH when there is no hardware?

 

RI is a hardware feature found on a real RS232 port. No hardware means no port means no RI line means no HIGH signal on RI line...

 

This gets mysterious...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 12
(3,488 Views)