UCD Console for UCD-340 User Manual | Unigraf Oy
70.
TESTSTAND INTEGRATION
This version of TSI introduces integration functions for National Instrument’s TestStand.
This section describes how to use these functions to configure the TE device, set TSI test
parameters and run TSI tests.
Integration functions
TestStand integration is done by creating 4 new functions. Please notice that these functions
are exported with C++ name mangling enabled in order to have the function parameter types
show up in TestStand automatically.
TSI_TST_Init
ClientVersion 12, and higher No license requirements
void __cdecl TSI_TST_Init
(
char *iSetupScript,
bool &oErrors,
long &oErrorCode,
char oErrorMsg[1024]
);
Description
This function is expected to be used to initialize TSI library when using it through TestStand.
The function will run the given script through the iSetupScript parameter. If the script
contains errors, or the device(s) being used are not available oErrors is set to true, oErrorCode
will have a machine readable error code, and the oErrorMsg will be set to a human-readable
error message.
Parameters
iSetupScript
Pointer to a NULL terminated string. The string content can be either the
setup-script directly, or a reference to a file that contains the setup script.
Important:
For details on the scripting, please refer to 1.2
TSI Scripts in
TestStand
.
oErrors
Reference to a variable that receives error flag. The value is set to “true”,
if the function failed, or “false” if the function succeeded.
(Continued...)
Содержание UCD-240
Страница 1: ......
Страница 76: ...UCD Console for UCD 340 User Manual Unigraf Oy 76 ...