script

The script commands module.

These commands are used in the following models: SMU2601B, SMU2602B, SMU2604B, SMU2606B, SMU2611B, SMU2612B, SMU2614B, SMU2634B, SMU2635B, SMU2636B, SMU2651A, SMU2657A

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

Please report an issue if one is found.

Attributes and Functions
- script.anonymous
- script.delete()
- script.load()
- script.new()
- script.newautorun()
- script.restore()
- script.run()

Script

Bases: BaseTSPCmd

The script command tree.

Properties and methods
  • .anonymous: The script.anonymous attribute.
  • .delete(): The script.delete() function.
  • .load(): The script.load() function.
  • .new(): The script.new() function.
  • .newautorun(): The script.newautorun() function.
  • .restore(): The script.restore() function.
  • .run(): The script.run() function.

anonymous property

anonymous: str

Access the script.anonymous attribute.

Description
  • This is a reference to the anonymous script.
Usage
  • Accessing this property will send the print(script.anonymous) query.
TSP Syntax
- print(script.anonymous)
Raises:

delete

delete(script_name: str) -> None

Run the script.delete() function.

Description
  • This function deletes a script from nonvolatile memory.
TSP Syntax
- script.delete()
Parameters:
  • script_name (str) –

    The string that represents the name of the script.

Raises:

load

load(file: str, name: str | None = None) -> str

Run the script.load() function.

Description
  • This function creates a script from a specified file.
TSP Syntax
- script.load()
Parameters:
  • file (str) –

    The path and file name of the script file to load.

  • name (optional, default: None ) –

    The name of the script to be created.

Returns:
  • str

    The result of the function call.

Raises:

new

new(code: str, name: str | None = None) -> str

Run the script.new() function.

Description
  • This function creates a script.
TSP Syntax
- script.new()
Parameters:
  • code (str) –

    A string containing the body of the script.

  • name (optional, default: None ) –

    The name of the script.

Returns:
  • str

    The result of the function call.

Raises:

newautorun

newautorun(code: str, name: str | None = None) -> str

Run the script.newautorun() function.

Description
  • This function creates a script and enables autorun.
TSP Syntax
- script.newautorun()
Parameters:
  • code (str) –

    A string that contains the body of the script.

  • name (optional, default: None ) –

    The name of the script.

Returns:
  • str

    The result of the function call.

Raises:

restore

restore(name: str) -> None

Run the script.restore() function.

Description
  • This function restores a script that was removed from the runtime environment.
TSP Syntax
- script.restore()
Parameters:
  • name (str) –

    The name of the script to be restored.

Raises:

run

run() -> None

Run the script.run() function.

Description
  • This function runs the anonymous script.
TSP Syntax
- script.run()
Raises: