03-13-2012 06:07 AM
Hi,
I was create SequenceCall (in MainSequence), but need to put Module filename and existing file where to find module. I found some old function that are not part of API anymore (TS_SequenceCallModuleSetUseCurrentFile() and TS_SequenceCallModuleSetSequenceName(). Those exists in help file, but not in tsapicvi.c.
Can you someone help with this (CVI code) ?
Best regards,
branar
Solved! Go to Solution.
03-13-2012 02:16 PM
I'm confused.
Are you calling the TestStand API from CVI? Are you generating a Sequence Call in your CVI code?
03-14-2012 01:06 AM
Hi,
I create seq file in CVI code (based on excell file). So, all sequences and subsequences are generated by CVI code and Ecxell file. Currently, want to add SequenceCall in MainSequence. It work with:
tsErrChkMsgPopup( TS_EngineGetSeqFileEx (EngineHandle, &errorInfo, SeqTemplate_path, TS_GetSeqFile_DoNotRunLoadCallback, TS_ConflictHandler_Prompt, &SequenceFileHandle)); error= TS_SeqFileGetSequenceByName (SequenceFileHandle, NULL, "MainSequence", &SequenceHandle); tsErrChkMsgPopup( TS_SequenceGetNumSteps(SequenceHandle, &errorInfo, TS_StepGroup_Main, &iNumofSteps)); tsErrChkMsgPopup( TS_EngineNewStep (EngineHandle, &errorInfo, "", "SequenceCall", &sequenceCallStep)); tsErrChkMsgPopup( TS_StepSetName ( sequenceCallStep, NULL, szName)); tsErrChkMsgPopup( TS_SequenceInsertStep ( SequenceHandle, &errorInfo, sequenceCallStep, iNumofSteps, TS_StepGroup_Main )); error= TS_StepGetModule ( sequenceCallStep, &errorInfo, &sequenceCallStepModule);
Now, need to add Module name and sequence name to call. I was tried with some function, but those are not supported (at least in tsapicvi.c)
error= TS_SequenceCallModuleSetUseCurrentFile ( sequenceCallStepModule, &errorInfo, VTRUE); error= TS_SequenceCallModuleSetSequenceName ( sequenceCallStepModule, &errorInfo, SeqTarget_path);
Also, I not found similar function to use instead. Can you help me with this ?
Best regards,
branar
03-14-2012 03:54 AM
Hi,
Problem is solved using different fp (tsadpcvi.h, tsadpcvi.c). Instead using tsapicvi.c with TestStand 4.2, missing functions was found in tsadpcvi.c with TestStand 2010).
Best regards,
branar