scpi - SCPI Interaction

Added in version PLT-OS: v2.0

Interact with an instrument using SCPI (USBTMC). Requires a supported USBTMC SCPI instrument.

scpi connect - Connect to SCPI instrument

Checks if a USBTMC SCPI instrument is present and configures it for use.

Usage:

- command: scpi connect <handle>
  [retry: <retryCount>]
  [id: <usbDeviceID>]
  [path: <usbDevicePath>]
  [interface: <usbDeviceInterface>]

Argument

Description

handle

Used to refer to this instrument in further commands.

retryCount

Optional: Number of times to retry the test step

usbDeviceID

Optional: USB device identifiers: VID:PID.

usbDevicePath

Optional: USB device path: port. .port.

usbDeviceInterface

Optional: USB device interface: interface_number.

scpi command - Send a SCPI command

Send a SCPI command.

Usage:

- command: scpi command <handle> [<command>]
  [retry: <retryCount>]
  [with:
    [- <command>]
    [- <command>]
    [..]]

Argument

Description

handle

Handle of previously connectd SCPI instrument

command

SCPI command (for example: "*RST")

retryCount

Number of times to retry the test step (optional)

scpi query - Perform a SCPI Query

Perform a SCPI Query.

Usage:

- command: scpi query <handle> [<command>]
  [extractKey: <key>...]
  [retry: <retryCount>]
  [timeout: <timeout>]
  [with:
    [- <command>]
    [- <command>]
    [..]]

Argument

Description

handle

Handle of previously connectd SCPI instrument

command

SCPI command query (for example: "*IDN?")

key

Key in which to store extracted text.

retryCount

Number of times to retry the test step (optional)

timeout

Timeout, in milliseconds (default: 5000ms)

Examples