Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to see GPIB traffic as caused byVISA commands?

Hi all,

 

Is it possible to snoop the GPIB traffic generated when controlling GPIB via the VISA library?

 

In particular, I would be interested to see the exact sequence of GPIB commands that are sent when a viAssertTrigger() is sent to a particular GPIB device.

 

The "NI IO Trace" utility shows the traffic in terms of VISA calls, but I want to dig deeper.

 

0 Kudos
Message 1 of 4
(4,573 Views)
Since the VISA commands are the GPIB traffic, I'm not sure what you are looking for. To see the lowest level bus traffic, you would need a bus analyzer. NI has these and are noted with a + on the product page.
0 Kudos
Message 2 of 4
(4,559 Views)

> Since the VISA commands are the GPIB traffic[...]

But, they are not - the VISA commands are an abstraction around the actual GPIB commands. E.g. a viAssertTrigger will translate to a small number of GPIB command bytes, including the command to make the target device a Listener, and the GET command to execute the trigger (and probably a few more).
> To see the lowest level bus traffic, you would need a bus analyzer. 
I am hoping for a software-only solution. In principe this is quite possible, the question is whether the NI VISA implementation supports it.
0 Kudos
Message 3 of 4
(4,553 Views)
To view the actual command bytes, you need the analyzer. This would be true even if you used GPIB calls instead of VISA. The GPIB functions are also an abstraction to all of the bus traffic such as the handshaking.
0 Kudos
Message 4 of 4
(4,550 Views)