NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I pass the sequence context to CVI without the tTestData structure

I found the following in the code template directory:
 
void __declspec(dllexport) __stdcall @REPLACE[FunctionName](CAObjHandle seqContextCVI,
        char reportText[1024], short *errorOccurred, long *errorCode, char errorMsg[1024])
It has CAObjHandle instead of tTestData. This is nice except I don't know how to set the CAObjHandle parameter from teststand. How can I access and pass this parameter in from teststand? 
0 Kudos
Message 1 of 2
(3,185 Views)

Hey Steve,

The TestStand API for CVI, which can be found at <TestStand>/API/CVI/tsapicvi.fp, uses this CAObjHandle to communicate with TestStand.  In TestStand, you can specify to pass a CAObjHandle by selecting the parameter to be an “Object” for Category and “CVI Active X Automation Handle” for type.  See the screen shot below.  Once CAObjHandle is selected as the parameter type, you can pass any object through this handle.  I hope this helps.





Message Edited by JettR on 12-10-2007 04:25 PM
Best Regards,
Software Engineer
Jett R
0 Kudos
Message 2 of 2
(3,156 Views)