
SR1 Operation
251
© 2014 Stanford Research Systems
either r (red) g (green) or y (yellow) at the beginning of the string. These characters are not displayed
they only indicate the color of the text.
Terminating Scripts
In general, scripts terminate when flow of control reaches the "end" of the script. Since in long complex
scripts it may be difficult to provide flow-control to the "end" of the script, the script can be terminated at
any time using the VBScipt "err.raise" function:
call err.raise(errNo (int) , errorSource (string) , errorDescription (string))
The SR1 Basic Interface includes a built-in flag, SR1.Scripting.Terminate, which is set true when the
user presses the stop (
) button on the scripting panel. A subroutine can be included in user
programs which checks the flag and ends the program:
sub checkterm()
if SR1.Scripting.Terminate then
call err.raise(-1,"checkterm","Manual Program Termination")
end if
end sub
By sprinkling calls to "checkterm()" throughout a script, the programmer can ensure that the script will
always terminate when the stop button on the scripting panel is pressed.
Содержание SR1
Страница 5: ...Part I Getting Started Audio...
Страница 7: ...Getting Started 7 2014 Stanford Research Systems...
Страница 12: ...SR1 Operation Manual 12 2014 Stanford Research Systems...
Страница 27: ...Part II SR1 Operation Audio...
Страница 156: ...SR1 Operation Manual 156 2014 Stanford Research Systems Passband Group Delay of Elliptical Filter...
Страница 258: ...SR1 Operation Manual 258 2014 Stanford Research Systems...
Страница 272: ...SR1 Operation Manual 272 2014 Stanford Research Systems on the amplitude sweep...
Страница 289: ...SR1 Operation 289 2014 Stanford Research Systems...
Страница 290: ...Part III SR1 Reference Audio...