State of GPIB bus management lines
BusManagementStatus is a structure array
that contains the fields
EndOrIdentify. These fields indicate the state
of the Attention (ATN), Interface Clear (IFC), Remote Enable (REN),
Service Request (SRQ) and End Or Identify (EOI) GPIB lines.
BusManagementStatus can be
any of these fields. If
the associated line is asserted. If
the associated line is unasserted.
The GPIB line is unasserted
The GPIB line is asserted
The default value is instrument dependent.
Create the GPIB object
g associated with
a National Instruments® board, and connect
a Tektronix® TDS 210 oscilloscope.
g = gpib('ni',0,0); fopen(g)
*STB? command, which queries the
instrument's status byte register, and then return the state of the
bus management lines with the
fprintf(g,'*STB?') g.BusManagementStatus ans = Attention: 'off' InterfaceClear: 'off' RemoteEnable: 'on' ServiceRequest: 'off' EndOrIdentify: 'on'
REN is asserted because the system controller placed the scope in the remote enable mode, while EOI is asserted to mark the end of the command.
Now read the result of the
and return the state of the bus management lines.
out = fscanf(g) out = 0 g.busmanagementstatus ans = Attention: 'off' InterfaceClear: 'off' RemoteEnable: 'on' ServiceRequest: 'off' EndOrIdentify: 'off'
fclose(g) delete(g) clear g