Engine.NewExecution
- Updated2024-10-09
- 2 minute(s) read
Engine.NewExecution
Syntax
Engine.NewExecution( sequenceFileParam, sequenceNameParam, processModelParam, breakAtFirstStep, executionTypeMaskParam, [sequenceArgsParam], [editArgsParam], [InteractiveArgsParam])
Return Value
Purpose
Creates and returns a new Execution object.
Remarks
When you call this method, the execution begins immediately.
Sequence editor and user interface programs use this method to run sequences.
You can pass parameters as arguments to this method when executing an entry point or sequence .
Parameters
sequenceFileParam As SequenceFile
[In] Specifies the SequenceFile object that contains the sequence to execute. If the execution uses a process model, pass the client SequenceFile object.
sequenceNameParam As String
[In] Specifies the name of the sequence or Process Model entry point to execute.
processModelParam As SequenceFile
[In] Pass the process model SequenceFile object if you want to execute a Process Model entry point. Otherwise, a NULL object reference in LabVIEW, 0 in LabWindows/CVI, or the Nothing keyword in Visual Basic, pass a NULL dispatch pointer in Microsoft Foundation Classes.
breakAtFirstStep As Boolean
[In] Pass True to suspend execution before executing the first step.
executionTypeMaskParam As Long
[In] Pass 0 for the default behavior or pass one or more ExecutionTypeMask constants. Use the bitwise-OR operator to pass multiple constants.
sequenceArgsParam As Variant
[In] [ Optional ] Specifies a PropertyObject object that contains the arguments to the sequence you want to execute. Each subproperty of the PropertyObject object represents a parameter to the sequence. The subproperties must appear in the same order as the sequence parameters.
editArgsParam As Variant
[In] [ Optional ] Specifies an EditArgs object that indicates which items are currently selected in the user interface. This is required only for Process Model entry points.
InteractiveArgsParam As Variant
[In] [ Optional ] Specifies an InteractiveArgs object that indicates which steps are currently selected in the user interface and contains looping information necessary for an interactive execution. Pass this parameter only for interactive executions.