beautypg.com

1 loadscriptfile, Method, 2 loadmodulefile – Teledyne LeCroy Automation API for Bluetooth Exercisers User Manual

Page 14: 3 start, 1 loadscriptfile method, 2 loadmodulefile method, 3 start method

background image

CATC

Automation API for CATC Bluetooth Exercisers

Manual Version 1.01

11

2.3.1 LoadScriptFile Method

HRESULT LoadScriptFile( BSTR file_name )


Loads a text script on the server and compiles it. Returns failure if there is a problem
with the file or compilation.

BSTR file_name [in]:

The path of the file on the server to load.

Errors:

SCRIPTMANAGER_ERROR_SCRIPT_RUNNING:

The operation cannot be performed because a script is running.

SCRIPTMANAGER_ERROR_SCRIPT_COMPILER:

The script failed to load or compile. The error string will contain error messages from
the script parser.

Requirements:
BTTrainer 2.01

2.3.2 LoadModuleFile Method

HRESULT LoadModuleFile( BSTR file_name )


Loads a binary module on the server. Returns failure if there is a problem with the file.

BSTR file_name [in]:

The path of the file on the server to load.

Errors:

SCRIPTMANAGER_ERROR_SCRIPT_RUNNING:

The operation cannot be performed because a script is running.

SCRIPTMANAGER_ERROR_FILE:

A problem was encountered either loading the file, or parsing the file format. The error
string will contain a textual description of the error.

Requirements:
BTTrainer 2.01

2.3.3 Start Method

HRESULT Start( VARIANT arg )


Starts running the currently loaded script or module. Invokes the script or module using
the passed in VARIANT as the argument to the script entry function “main”. Does not
wait for the script to complete.

VARIANT arg [in]: