Chapter 3
Local Command Set
3-44
ni.com
LaSaddr
Purpose
Attach or detach a GPIB address to a logical address.
Command Syntax
LaSaddr <logical address>, <GPIB address>
Action
If
<GPIB address>
is not equal to 255, attach
<GPIB address>
to <logical address>.
If
<GPIB address>
is equal to 255, release
<GPIB address>
currently attached to
<logical address>
.
Attaching a GPIB address to a logical address that already has a GPIB address will cause the
first GPIB address to be replaced by the new GPIB address.
Attempting to release or change a GPIB address will result in a Delete I/O Link error if any
of the following conditions is true:
•
The GPIB address does not exist.
•
The GPIB address is addressed to talk or listen; unable to delete.
•
There is still data in the GPIB address input or output queue.
Examples
Attach GPIB Address 6 to Logical Address 4.
LaSaddr 4,6
Release GPIB address currently attached to Logical Address 8.
LaSaddr 8,255