CVIModule.Execute
- Updated2025-07-21
- 1 minute(s) read
CVIModule.Execute
Syntax
CVIModule.Execute( sequenceContextParam, argumentsParam)
Purpose
Use this method to call a LabWindows/CVI module function directly without using a step, sequence, or execution.
Remarks
When you call a LabWindows/CVI module function using this method you can evaluate the parameter expressions to determine the argument values or specify the argument values directly using a CVIArguments collection.
To use the parameter value expressions, pass a valid SequenceContext object to the sequenceContextParam to use to evaluate the CommonCParameter.ValueExpr expressions.
To pass specific argument values, use the CVIParameters.NewArguments method to create a collection of CVIArgument objects and set the CVIArgument.Value property on each item in the collection.
Parameters
sequenceContextParam As SequenceContext
[In] Specifies the SequenceContext object that this method uses to evaluate each of the CommonCParameter.ValueExpr expressions in the module parameters. Pass NULL for this parameter if you pass a CVIArguments collection to the argumentsParam parameter.
argumentsParam As CVIArguments
[In] Specifies the argument collection that contains the argument values to pass to the function. Pass NULL for this parameter to pass the values obtained from evaluating each of the CommonCParameter.ValueExpr expressions in the module parameters.