Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-Device where is the LOCKOUT state

I am using NI-Device on my Windows 2000 system.
Using the class CGpibDevice I arm the method
RemoteLocalCallBack() to be call when going in Remote State. But where is the LockoutCallBack() method, to let me know I am in Lockout state. With the driver NI-488.2 standard software a call to ibwait() gave me the ibsta and the value 0X0080 tell me that I am in Lockout state. I would like to know how can I get the Lockout state with NI-Device?
0 Kudos
Message 1 of 2
(3,014 Views)
That is a very good question. NI-Device does not have a LockoutCallBack, because we handle the lockout state internally within NI-Device. When your device is in the Lockout state, the ReturntoLocal method will not cause a Remote/Local state change, hence your RemoteLocalCallBack will not be invoked.
0 Kudos
Message 2 of 2
(3,014 Views)