LabVIEWModule.Execute
- Updated2025-07-21
- 1 minute(s) read
LabVIEWModule.Execute
Syntax
LabVIEWModule.Execute( sequenceContextParam, argumentsParam)
Purpose
Use this method to call a LabVIEW VI directly without using a step, sequence, or Execution.
Remarks
When you call a LabVIEW module using this method you can evaluate the parameter expressions to determine the argument values or specify the argument values directly using a LabVIEWArguments collection.
To use the parameter value expressions, pass a valid SequenceContext object to the sequenceContextParam to use to evaluate the LabVIEWParameter.ValueExpr expressions.
To pass specific argument values, use the LabVIEWParameters.NewArguments method to create a collection of LabVIEWArgument objects and set the LabVIEWArgument.Value property on each item in the collection and on each item in contained collections like the LabVIEWArgument.Elements collection.
Parameters
sequenceContextParam As SequenceContext
[In] Specifies the SequenceContext object that this method uses to evaluate each of the LabVIEWParameter.ValueExpr expressions in the module parameters. Pass NULL for this parameter if you pass a LabVIEWArguments collection to the argumentsParam parameter.
argumentsParam As LabVIEWArguments
[In] Specifies the argument collection that contains the argument values to pass to the VI. Pass NULL for this parameter to pass the values obtained from evaluating each of the LabVIEWParameter.ValueExpr expressions in the module parameters.