NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put Module filename and use current filename in code ?

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(3,033 Views)

I'm confused.

 

Are you calling the TestStand API from CVI? Are you generating a Sequence Call in your CVI code?

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 4
(3,023 Views)

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

 

 

0 Kudos
Message 3 of 4
(3,016 Views)
Solution
Accepted by branar

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

 

0 Kudos
Message 4 of 4
(3,012 Views)