Create A Script Using The Script.new() Command - Keithley 2601B Reference Manual

2600b series system sourcemeter instrument
Hide thumbs Also See for 2601B:
Table of Contents

Advertisement

Section 6: Instrument programming

Create a script using the script.new() command

Use the script.new() function to copy an existing script from the local node to a remote node. This
enables parallel script execution.
You can create a script with the script.new() function using the command:
scriptVar = script.new(code, name)
Where:
scriptVar
code
name
For example, to set up a two-second beep, you can send the command:
beepTwoSec = script.new("beeper.enable = 1 beeper.beep(2, 2400)", "beepTwoSec")
To run the new script, send the command:
beepTwoSec()
When you add beepTwoSec, the global variable and script.user.scripts table entries are
made to the run-time environment as shown in the following figure.
Create an unnamed script using script.new()
Unnamed scripts are not available from the front-panel display of the instrument. Only the
anonymous script and named scripts are available from the front-panel display.
6-40
= Name of the variable created when the script is loaded into the run-time environment
= Content of the script
= Name that is added to the script.user.scripts table
Figure 114: Runtime environment after creating a script
Series 2600B System SourceMeter® Instrument Reference Manual
2600BS-901-01 Rev. B / May 2013

Advertisement

Table of Contents
loading

This manual is also suitable for:

2604b2614b2634b2635b2636b2602b ... Show all

Table of Contents