2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-85
gpib.address
This attribute contains the GPIB address.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
No
Not applicable
Nonvolatile memory
18
Usage
address
= gpib.address
gpib.address =
address
address
The GPIB address of the instrument (1 to 30)
Details
The address can be set to any address value from 1 to 30. However, the address must be unique in
the system. It cannot conflict with an address that is assigned to another instrument or to the GPIB
controller.
A new GPIB address takes effect when the command to change it is processed. If there are response
messages in the output queue when this command is processed, they must be read at the new
address.
If command messages are being queued (sent before this command has executed), the new settings
may take effect in the middle of a subsequent command message, so care should be exercised when
setting this attribute from the GPIB interface.
You should allow sufficient time for the command to be processed before attempting to communicate
with the instrument again.
The
reset()
function does not affect the GPIB address.
Example
gpib.address = 26
address = gpib.address
print(address)
Sets the GPIB address and reads the address.
Output:
26
Also see
(on page 2-11)