LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get StepGetUniqueStepId of a step during run time

Not sure how to get expected handle for this funcation call.

 

I am trying to call this during a post step

seqContextCVI is the CVI AxtiveX automation handle.

 

 iStatus = TS_StepGetUniqueStepId (seqContextCVI, &sErrorInfo, &pPath);
I get -2147467262 for the status.  What is the error?  Where would I find this error code defintion?

0 Kudos
Message 1 of 2
(3,076 Views)

Hi goslow,

 

You probably get the error because the first parameter you passed to the function is not pointing to a step.

You input the whole sequence context.

 

You should specify which step you are trying to access.

From this function call you provided, this is not clear.

 

The ErrnoToTSError function translates the error code to TS_Err_OperationFailed.

S. Eren BALCI
IMESTEK
Message 2 of 2
(3,053 Views)