Scripting

This action allows fully customization of the Sweep Plan to be in total control of the measurement using homemade language: script. See this section for more information about scripting. To learn more, see Scripting.

For example, it's more powerful than SCPI action, because it's possible to open connection with several instruments, or to communicate to instruments using .dll files.

Script action logo Script [Loop*]

* Loop is performed only if the advanced option "Loop" is checked.
This action allows to perform script.

Script action

  • Name: name of the script; used into Sweep Plan tree
  • Script: the script to perform. See this section for more information about scripting. To learn more, see Scripting.
  • Script action logo: to display script documentation
  • Presets: this feature allows to save/load script (for more information about script file location, see ../windows_folder.html#windows_folder__settings section)
  • Loop:
    • if checked and set to 0 : children are executed as long as the last instruction result is an integer other than 0 (for easy use, return 0; to stop and return 1; to continue)






    • if checked and set to 1 : children are executed if script return true






    • if checked and set to X : children are looped until the count value (X) is reached.






  • Execute After Children: if checked, the script is executed once children has been executed at least once
  • Break loop at first encountered error: stop loop if an error occurs.
Example 1: use library to check temperature

Script example 1

The test is executed once:
  • Success: message "Temperature OK" is displayed then the measurement is performed
  • Failed: message "End" is displayed