beautypg.com

6 isrunning, Property, Compiling binary script files – Teledyne LeCroy Automation API for Bluetooth Exercisers User Manual

Page 16: 4 compiling binary script files

background image

CATC

Automation API for CATC Bluetooth Exercisers

Manual Version 1.01

13

The operation cannot be performed because a script is running.

SCRIPTMANAGER_ERROR_NO_SCRIPT:

No script object (either text or module) had been loaded.

Requirements:
BTTrainer 2.01

2.3.6 IsRunning Property

BOOL IsRunning

The running property will be TRUE if a script is currently running, and FALSE
otherwise. This is a read-only property.

2.4 Compiling Binary Script Files

BTTrainer™ and Merlin's Wand™ applications can execute both text-based scripts and
binary scripts. Binary script files can be loaded into the exerciser application through the
automation interface, using the LoadModuleFile() method.
The CSLc console application provided in the installation enables the user to compile a
text-based script file into a binary file.
The CSLc is called through a command line with the source text-base script file name
and the desired output file name. The application appends a ‘.tbs’ extension to the output
filename that the user specified.

Command Line Usage:
CSLc

Returns:
0 if successful.
nonzero otherwise.

Output:
Prints script errors on stderr.