BusManagementStatus
State of GPIB bus management lines
Description
BusManagementStatus
is a structure array
that contains the fields Attention
, InterfaceClear
, RemoteEnable
, ServiceRequest
,
and 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 on
or off
for
any of these fields. If BusManagementStatus
is on
,
the associated line is asserted. If BusManagementStatus
is off
,
the associated line is unasserted.
Characteristics
Usage | GPIB |
Read only | Always |
Data type | Structure |
Values
| The GPIB line is unasserted |
| The GPIB line is asserted |
The default value is instrument dependent.
Examples
Create the GPIB object g
associated with
a National Instruments™ board, and connect g
to
a Tektronix® TDS 210 oscilloscope.
g = gpib('ni',0,0); fopen(g)
Write the *STB?
command, which queries the
instrument's status byte register, and then return the state of the
bus management lines with the BusManagementStatus
property.
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 *STB?
command,
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