From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,612 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,612 Views)