Hi,
I have found the answer, but I waited with a reply before I had tested it. But here follows the solution:
I called the sequence file from an operator interface I had developped using LabWindows / CVI 8, using the function as below.
It turned out I was calling the sequence file directly without using
the proper model. I changed this to calling the Test UUTs sequence and
supplying the model in the function call. The function you see here
makes calling the model or a single sequence an option by setting the
input parameter useModel.
static HRESULT i32_SendTestStandSequence( int useModel )
{
char *modelDesc = NULL;
CAObjHandle modelSeqFile = 0;
HRESULT hresult;
char sequence[MAX_LEN_PATH + MAX_LEN_SEQNAME] = "";
if ( useModel ){
TS_SeqFileGetModelSeqFile(gMainWindow.start_sequence, &errorInfo,
&modelDesc, &modelSeqFile);//get handle of process model
strcpy( sequence, "Test UUTs" );
} else {
modelSeqFile = 0;
strncpy( sequence, s_IniVars.ac_StartSequence, MAX_LEN_PATH + MAX_LEN_SEQNAME );
}
// See teststand helpfile under Sequence -> executing
hresult = TS_EngineNewExecution(
gMainWindow.engine,
// engine
&errorInfo,
// errorinfo
gMainWindow.start_sequence, //
handle sequence file
sequence,
//
sequence name
modelSeqFile,
// handle process model
VFALSE,
// breakAtFirstStep
TS_ExecTypeMask_Normal,
// executionType
CA_DEFAULT_VAL,
// sequenceArgs
CA_DEFAULT_VAL,
// editArgs
CA_DEFAULT_VAL,
// interactiveArgs
&gMainWindow.CurrentExecution );// handle executionObject
return hresult;
}
This works for me.
Dagget