Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I address a device as a listener?

I have a GPIB device that sends lots of data to the controller. After it has sent 4 Mbytes of data it has a counter overflow that causes the device to stop sending data. The vendor says I need to periodically address the device as a listener which will cause it to reset the counter. I need to do this very fast inorder to keep up with the data rate. How do I tell a device to be a listener without sending any data?
0 Kudos
Message 1 of 2
(2,887 Views)
I am not certain if you are using LabVIEW or a C based language. The instructions will change a bit. The easiest way is if you are using a C-based language. If you open up a board session (i.e., ibfind ("GPIB0")), you can use the returned handle to make a board-level call. To address the bus, you need to make a call to ibcmd. The commands that you want to send across the bus are UNT, UNL, MLAdevice. The characters are:
UNT = '_'
UNL = '?'
MLAdevice = 0x20 | PAD of the device

You can make 3 ibcmd calls, or you can create the string and make a single ibcmd call (fastest).

I hope this helps.
Message 2 of 2
(2,887 Views)