I am trying to execute a sequence file from custom operator interface in C# using a custom process model file. I have attached the sequence files that i have used for testing.
Environment- Operator Interface in C# (VS2005)
- Sequence File - Teststand 3.5
- ProcessModel - Modified SequentialModel.seq (customized to my requirement)
- In StationOptions, Customized process model is selected by default.
- In TestStand environment, sequence file works as expected.
Operation Interface - C# Code snippet - execution call
[...]
CurrentSequenceFile = formView.axApplicationMgr.OpenSequenceFile(_sequenceFilePath);
[...]
NationalInstruments.TestStand.Interop.API.SequenceFile processModelFile = CurrentSequenceFile.GetModelSequenceFile(out processDescription);
mExecution = formView.formModel.tsEngine.NewExecution(CurrentSequenceFile, "MainSequence", processModelFile, false, 0x2, pobj, null, null);[...]
When i use the following statement,
mExecution =
formView.formModel.tsEngine.NewExecution(CurrentSequenceFile,
"MainSequence", null, false, 0x2, pobj, null, null);sequence file gets executed (without binding to processModel file). But when i give the processModelFile, sequence file is not getting executed.
Question: How to use the function Engine.NewExection() to run the sequence file with specified processModel file?
Is there any other method otherthan the one i am using?