Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5628

Using RS232 modem lines like CTS / RTS to detect physical connection

$
0
0

Hi,

 

I am building a simple VI for communicating with an RS232 instrument.  The instrument is old and there is little documentation.  But I got it working.  Now I am simply trying to add a quick function to the beginning of the VI to detect if the device is physically connected to my serial port (without actually opening the port and initiating communication).

 

I believe this might be possible by using NI-VISA to check the state of the model serial lines (like DTR / DSR / CTS / RTS).  I think I remember hearing that if the RS232 receiver sets one of these lines HIGH, then the sender responds in some way.  Any thoughts here?  

 

- John


Viewing all articles
Browse latest Browse all 5628

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>