Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Why GPIB controlled instrument stays in remote mode after it's being closed?

I'm using GPIB standard library under CVI. I open an instrument with ibdev. When I make some write or reads with ibwrt or ibrd instruments goes into remote mode. To close an instrument I use
ibonl(Device, 0);
Unfortunately instrument retains in remote mode.

It looks like I have to take care on my own to put instrument into local mode with ibloc before closing it. This behaviour is somehow strange. If I'm going to close an instrument and don't use it any more it's quite straightforward that driver should take care to put it in local mode. Why it doesn't take place?

Do I have to use ibloc before closing instrument to make sure it will go to local mode?
0 Kudos
Message 1 of 3
(3,451 Views)
REM indicates whether or not the board is in the remote state. REM is set whenever the Remote Enable (REN) GPIB line is asserted and the GPIB board detects that its listen address has been sent either by the GPIB board or by another Controller. REM is cleared whenever REN becomes unasserted, or when the GPIB board as a Listener detects the Go to Local (GTL) command has been sent either by the GPIB board or by another Controller, or when the ibloc function is called while the LOK bit is cleared in the status word. A call to the function ibonl clears the following bits:
END LOK REM CIC TACS LACS DTAS DCAS
If this is not the behavior that you are seeing, contact NI (at the website below) with an analyzer capture.

http://sine.ni.com/apps/we/niae_asc.main

Thanks,

Kim L.
Appli
cations Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,451 Views)
This reply describes a board (controller) behaviour. It's very interesting to know, but still it doesn't answer a question if an instrument (etc. HP34401A) should go to the local mode when closed with ibonl(Device, 0) function.

Thanks for your help.
0 Kudos
Message 3 of 3
(3,451 Views)