SCPI

In order to add even more flexibility to the sweep plan, it's possible to send SCPI orders to the instrument. This capability allows the sweep plan to add more control and provide access to specific options of a particular instrument or to an instrument not controlled by IQSTAR driver.

SCPI command action logo SCPI command [Executed Once]

This action allows to send command to instrument.
Important: In case of the query, don't forget to check Response expected option, to clean buffer and to avoid any future problems with real queries.

SCPI command action

  • Connection Settings
  • Command Settings
    • Command: command to send to instrument
      Important: Do not forget to add line return (\n or \r\n) at the end of the command
    • Response expected: if the command is a query, it will clean buffer to avoid any future problems with real queries
    • STB (Status Byte Query): used for legacy instrument to know the end of the command
      • STB Delay (ms): elapsed time before sending a new STB query
      • STB success list: list of integers (between 0 and 255) separated by comma to know if the STB query is a success
      • STB failure list: list of integers (between 0 and 255) separated by comma to know if the STB query has failed. In this case, a error is occurred
      Note: A STB query is sent as long as the returned value will not be in one of the two lists (success or failure)

SCPI Test action logo SCPI Test [Loop*]

* Loop is performed only if the advanced option "Loop" is checked.
This action allows to send query to instrument. If the returned value corresponds to the expected response, children of this action will be performed.

SCPI test action

  • Connection Settings
  • Query Settings
    • Query: query to send to instrument
      Important: Do not forget to add line return (\n or \r\n) at the end of the query
  • Response Settings
    • Type: type of the returned value
      • Boolean: list of expected values:
        • Checked: 1, true, On
        • Unchecked: 0,false, Off
        Note: Other values will be considered as true
      • Integer: numbers without floating part
      • Double: numbers with floating part
      • String: text response
        • Case sensitive: if checked, taking into account capital letters (e.g.: "IQSTAR" and "iqstar" are two different words)
  • Advanced Settings
    • Loop: as long as returned value corresponds to the expected response, children will be performed
    • Loop performed after children: if checked, the test will be performed after a first execution of children
Example 1: simple test

SCPI test action example 1

In this example, to perform measurement the temperature must be equal to 22,5°.
The test is executed once:
  • Success: message "Temperature OK" is displayed then the measurement is performed
  • Failed: message "End" is displayed
Example 2: loop test

SCPI test action example 2

In this example, to perform measurement the temperature must be equal to 22,5°.
The test is a loop:
  • Success (temperature is different from 22,5°): wait 2 seconds, and send the query again
  • Failed (temperature is equal to 22,5°): the message "Temperature OK" is displayed then the measurement is performed. Finally message "End" is displayed