Chapter 3
Local Command Set
©
National Instruments Corporation
3-31
GrantDev?
Purpose
Grant a Servant to a Commander.
Query Syntax
GrantDev? <Commander's logical address>, <Servant's logical address>
Action
Grants the device at
<Servant's logical address>
to device at
<Commander's
logical address>
.
The GPIB-VXI/C must own the device at
<Servant's logical address>
.
The GPIB-VXI/C can get ownership of any device with the
RelSrvnt?
command.
Notice that before the
GrantDev?
query is used, the Word Serial
End Normal Operation
query, or a
Clear
command followed by the
Abort Normal Operation
query should have
been broadcast with the
Broadcast?
query.
Response
Program response:
0
<CRLF>
indicates that the command was successful.
Console response:
Logical Address <Commander's logical address> granted device at
Logical Address <Servant's logical address>.
Example
Grant Device 16 to Commander at Logical Address 8.
Grantdev? 8,16