I know in Teststand, in order to use the function like "TS_PropertyGetValBoolean", I need to have the parameters like "CAObjHandle seqContextCVI" in exported DLL function. However, sometimes I don't want this, while still being able to use Teststand API functions like TS_PropertyGetValBoolean in the body of that exported DLL function. How can do it? See below.
Common use:
----------------------------------------------------------------------------------------------------------------
void DLLEXPORT CAN846_Post(CAObjHandle seqContextCVI,short *errorOccured,short *errorCode,char errorMsg[1024] )
{
int error=0;
ERRORINFO errorInfo ;
ErrMsg errMsg="";
VBOOL temp;
seqContextCVI=seq;
tsErrChk(TS_PropertyGetValBoolean(seqContextCVI,&errorInfo,"Step.Configure.initialize",0,&temp));
if (temp==VTRUE)
MessagePopup("execute","we will execute intialize operation according to your choice");
......
------------------------------------------------------------------------------------
My special use :no
void DLLEXPORT CAN846_Post(short *errorOccured,short *errorCode,char errorMsg[1024] )
{
int error=0;
ERRORINFO errorInfo ;
ErrMsg errMsg="";
VBOOL temp;
seqContextCVI=seq;
// here, need to add some in order to declare seqContextCVI
tsErrChk(TS_PropertyGetValBoolean(seqContextCVI,&errorInfo,"Step.Configure.initialize",0,&temp));
if (temp==VTRUE)
MessagePopup("execute","we will execute intialize operation according to your choice");