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

VISA port state ( opened or not )

$
0
0

Hi,

 

I want to find out if the VISA resource name I selected is opened by another application or not to decide to open it or not.

 

I tried to use the error out from the VISA open VI to discover whether the port can be used or not. So I created two VIs which use the same port ( of course the port exists ).

 

The first VI open the port without any error. And unexpectedly, the second VI open the port without error, while the first one is using the port without closing it.

 

Note that the second VI's VISA resource name list shows that this port is opened ( the icon next to the port's name ) before running it.

 

So is there any way to find out if a port is opened by another application ?


Viewing all articles
Browse latest Browse all 5565

Trending Articles



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