NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TS_PropertyGetValString

I am trying to get some variables out of TS into a DLL written using CVI.  When I include the tsErrChk function as written below, I get "Undefined label 'Error'  I don;t
 
 int      error = 0;
 ERRORINFO    errorInfo;
    ErrMsg   errMsg = {'\0'};
    
    int flag = 0;
    char *stringVal = NULL;
               
    tsErrChk (TS_PropertyGetValString(context, &errorInfo, "Locals.WxcTestParms.BootDevice", 0, &stringVal));
 strcpy(sysInfoStruct.BootDevice, stringVal);
0 Kudos
Message 1 of 2
(2,646 Views)

Hi,

Have to got the label Error: in your function code.

If you have use TestStand to create your c file, then towards the end of the function you will probably find some commented out code for handling the error condition.

You will need to make sure the line with Error: has been uncommented

Hope this helps

regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,613 Views)