Scripting Window - Lambda SR1 Operation Manual

Audio analyzer
Table of Contents

Advertisement

2.7.2

Scripting Window

The scripting window provides a complete development environment for writing and debugging SR1
scripts. Scripts are small programs, written either in VBscript or JScript, which can automate small
tasks or entire test sequences. Scripts interact with SR1 through the SR1 Basic interface, which divides
the instrument into a heirarchical collection of objects, each of which can contain properties that can be
set and read and actions which can be performed. A complete description of the SR1 Basic functions
can be found in the "SR1 Basic Programming Reference." A good recent introduction to both scripting
languages can be found in William R. Stanek's "Microsoft PowerShell, VBScript & JScript Bible"
published by Wiley. All examples in this manual will be shown in VBscript.
The scripting window has several sections. At the top is a speedbar providing fast access to commonly
used functions. The main window area is used for actually writing the script. Note the line numbers at
the left. The two windows to the right show the functions available in the SR1 Basic interface along with
a description of function arguments. At the bottom, a status bar shows the currently selected scripting
language, the script timeout setting, and the row and column of the current cursor location
The Scripting Window Speedbar
Icon
© 2014 Stanford Research Systems
Description
Creates a new script. A dialog will prompt to save any existing script before it is cleared.
Loads a script from a file.
Saves the current script.
Save As. Saves the current script to a different file.
Print Setup. Offers printer and page layout options for printing the script.
Prints the script.
SR1 Operation
243

Advertisement

Table of Contents
loading

Table of Contents