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

visa exclusive lock hislip

$
0
0

Hi,

 

I try to use VI_EXCLUSIVE _LOCK for accessing HiSlip device over TCPIP (R&S CMW500)

 

What I did is to test the application locally ( 2 instances of same application running on same PC): it works as expected (both for SOCKET and for HiSlip)

 

Then I moved to use HiSlip, because SOCKET is not supposed to work for LOCK on different machines

 

When I tested real application ( 2 application running on different machines) I got following result:

- at the beginning it look as it is working: lock works and second machine is waiting for access granted

- after timeout of about 10s (very similar to default timeout for communication) the viOpen(..VI_EXCLUSIVE_LOCK,60000) returns with an error ( resource locked). Why 10000ms and not the 60000ms expected?

-after some loops of testing, the resource appears locked EXCLUSIVE, and I can not access from neither first or second machine

-closing the application or rebooting machines does not help: only found solution is to reboot device

 

I'm using NI-VISA 14.0 and NI-488.2 14.0.0 from a C++ application.


Viewing all articles
Browse latest Browse all 5691

Trending Articles



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