Accessing and Controlling the Device
After opening a device connection using the VisaDevice function, you can update and display certain default settings, or properties, on the test and measurement device to allow you to control it more easily.
VisaDevice Properties
Before you start, you can verify that a variable contains a visaDevice connection object using the SenseTalk is a operator.
set powerAnalyzer to visaDevice(deviceAddr)
put powerAnalyzer is a VisaDevice —> True
The deviceIdentifier Property (Read-Only)
Value: Full identifier string of the device.
Default: Empty.
Behavior: Returns the full identifier string for a test and measurement device.
Examples:
put powerAnalyzer ’s deviceIdentifier —> “Keysight Technologies,N6705C,MY56004754,E.02.03.3189” // Returns the unique ID for the device.
The defaultChannel Property
Value: One or more channels on the device.
Default: Empty.
Behavior: Sets a default channel or set of channels for the device, which simplifies the sequence of commands that you need to address the same channel or channels. This property is very useful for devices that identify individual channels in the form (@2).
You can use the defaultChannel property with the setValue and query commands, but not the perform, queryData and ExecuteSCPI commands.
Examples:
set powerAnalyzer ’s defaultChannel to 2 // Commands are sent to channel 2 on the device.
set powerAnalyzer.defaultChannel to [1,3] // Commands are sent to channels 1 and 3 on the device.
set the defaultChannel of powerAnalyzer to empty // Resets the default channel on the device.