LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TS_EngineNewExecution

I'm trying to run a TestStand sequence from CVI.  The TS_EngineNewExecution call returns correctly but doesn't seem to actually run the sequence.  I can write this same code in TestStand and the sequence runs fine.

Here's a code snippet from the CVI project:

         tsErrChkMsgPopup( TS_EngineGetSeqFileEx (objEngine,
                                             &errorInfo,
                                             pszSequenceFile,
                                             TS_GetSeqFile_OperatorInterfaceFlags,
                                             TS_ConflictHandler_Error,
                                             &objSeqFile));
       
          tsErrChkMsgPopup( TS_EngineNewExecution( objEngine,
                                             &errorInfo,
                                             objSeqFile,
                                             "MainSequence",
                                             objProcessModel,    // where objProcessModel is 0
                                             VFALSE,
                                             TS_ExecTypeMask_InitiallyHidden,
                                             CA_DEFAULT_VAL,
                                             CA_DEFAULT_VAL,
                                             CA_DEFAULT_VAL,
                                             &objExecution)) ;

            tsErrChkMsgPopup( TS_EngineReleaseSeqFileEx( objEngine, &errorInfo, objSeqFile, 0L, &unloaded)) ;
            CA_DiscardObjHandle(objSeqFile) ;

In TestStand, the code which does the same thing, successfully:

            FileGlobals.objSeqFile = RunState.Engine.GetSequenceFileEx("C:\\Documents and Settings\\Jen\\Desktop\\Sequence File 2.seq", 0, ConflictHandler_Error)
            RunState.Engine.NewExecution( FileGlobals.objSeqFile, "MainSequence",  Nothing, False, ExecTypeMask_InitiallyHidden)
            RunState.Engine.ReleaseSequenceFileEx( FileGlobals.objSeqFile, 0)

Why isn't the TS_EngineNewExecution call working correctly?  What subtlety might I be missing?  I know the engine handle is OK because I can use it to display a popup dialog;  the sequence object handle seems correct also.

I'm running CVI 8.5 and TS 4 on Windows XP.

Thanks.  -- Jen
0 Kudos
Message 1 of 2
(3,416 Views)
Hello all,

Please refer to this forum for the resolution of this question and any further postings on this issue.  Thanks!
Regards,


Marty H.
National Instruments
0 Kudos
Message 2 of 2
(3,365 Views)