Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

http://www.medicollector.com
0 Kudos
Message 1 of 2
(1,925 Views)

Hi josborne,

Perhaps you may be interested in the VISA Find Resource Function
http://zone.ni.com/reference/en-XX/help/371361R-01/lvinstio/visa_find_resource/

Cheers

0 Kudos
Message 2 of 2
(1,889 Views)