NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get the TS Step Name in CVI?

HI,
 
I would like to use in my CVI code the TS step name that is being executed.
 
I tried   tsErrChk(TS_StepGetName (gContext, &errorInfo, &TSbuf));   and I get "unkown error"
 
-2147467262; User-defined error code.
Possible System Error: No such interface supported
Any idea what is going on?
 
Any other way to get the step name?
 
Thanks
Rafi
 
 
0 Kudos
Message 1 of 2
(2,882 Views)

Rafi,

 

You can use:

CAObjHandle step = 0;

char* stepname = 0;;

TS_SeqContextGetStep(gContext,&errorInfo,&step);

TS_StepGetName(step, &errorInfo, &stepName);

CA_FreeMemory(stepName);

CADiscardObjectHandle(step);

Hope it helps

0 Kudos
Message 2 of 2
(2,882 Views)