scriptvar

The scriptvar commands module.

These commands are used in the following models: DAQ6510, DMM6500, DMM7510, SMU2450, SMU2460, SMU2461, SMU2470

THIS FILE IS AUTO-GENERATED, IT SHOULD NOT BE MANUALLY MODIFIED.

Please report an issue if one is found.

Attributes and Functions
- scriptVar.run()
- scriptVar.save()
- scriptVar.source

Scriptvar

Bases: BaseTSPCmd

The scriptVar command tree.

Info
  • scriptVar, the name of the variable that references the script.
Properties and methods
  • .run(): The scriptVar.run() function.
  • .save(): The scriptVar.save() function.
  • .source: The scriptVar.source attribute.

source property

source: str

Access the scriptVar.source attribute.

Description
  • This attribute contains the source code of a script.
Usage
  • Accessing this property will send the print(scriptVar.source) query.
TSP Syntax
- print(scriptVar.source)
Info
  • scriptVar, the name of the variable that references the script that contains the source code.
Raises:

run

run() -> None

Run the scriptVar.run() function.

Description
  • This function runs a script.
TSP Syntax
- scriptVar.run()
Info
  • scriptVar, the name of the variable that references the script.
Raises:

save

save(filename: str | None = None) -> None

Run the scriptVar.save() function.

Description
  • This function saves the script to nonvolatile memory or to a USB flash drive.
TSP Syntax
- scriptVar.save()
Parameters:
  • filename (optional, default: None ) –

    A string that contains the file name to use when saving the script to a USB flash drive.

Raises: