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

VISA concurrent communication

$
0
0
Question: With the utilization of VISA, is it possible for two different applications (A,C) to alternatively communicate with the same device (B) without causing trouble  on the GPIB bus ?
My current status is that this might be difficult when using plain GPIB (eg. nig-gpib.dll) as one has to share locks between A and C. Also multithreading in general can sometimes be tricky.
 
To illustrate my usecase, I created the following example.
 
3 Applications communicating over VISA/GPIB3 Applications communicating over VISA/GPIB
 

A: Is a legacy application which can unfortunately only partially be altered. Until now, it relies exclusively on on a GPIB library to communicate with the device (B).

B: Is a device which can only use GPIB but not VISA . Additionally it is a prober (e.g. UF2000 etc.) instead of a measurement device !

C: As (A) cannot be altered (and for now not be substitued), there are communication sequences where (C) also wants to talk with (B).

Further constraints: (A) and (C) reside on the same workstation and should  ideally share one single GPIB-Card. Most hosts have NI-hardware but I guess there exist some which don't have NI-hardware. Furthermore: (A) can run on various windows versions, Linux, Solaris 🙂 ...

 

From the sktech, there follow classical communication scenarios:

1. E.g. (A) sends a message M1 to (B) and blocks until the result arrives, (C) is not interested in the result. The same example can be created vice versa.

2. It is also possible that (A) sends a message M2 and (C) is interested in the result (this can be handeled by VISA-events ?!).

3. There may be phases in which C is not allowed to "interrupt" the communication between A and B. A theoretical aspect: If  deadlocks or

even livelocks (?) occur, how can this be avoided or minimized ? Timeouts in VISA ?

 

As I'm fairly unexperienced with VISA, I hope someone can point out if it is worth trying to establish this concept with VISA or not ...

 

Best regards,

TestcellGuy


Viewing all articles
Browse latest Browse all 5566

Trending Articles



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