VI Setparm Output Object
The Visual Integrator (VI) Setparm output object sets parameters to use in later tasks within the same VI script. The Setparm output object expects a single row containing values to set as parameters. If the Setparm object encounters multiple rows, an error occurs.
The Setparm object is similar to the Iterate object, except it sets the parameters once and makes them available to subsequent tasks in the VI script instead of needing to run another task.
The Setparm object is useful for Tunnel scripts where the parameters to be set need to be calculated based on values passed into the tunnel. The first task of the Tunnel script has the Setparm object, setting parameters that are used in subsequent tasks.
The Setparm output object has three panes where you set attributes.
You set attributes for the Setparm output object in the object attributes pane.
Attribute | Description |
---|---|
Input |
Defines the object from which the data flow arrives. Use one of the following methods to attach the Setparm output object to an input data flow object:
|
Each object has an area where you can enter comments.
It is a DI best practice to enter a note for every object in a VI script. You can set a VI preference to give a warning for each object without a note.
In the column grid, set which of the input columns become parameters.
Attribute | Description |
---|---|
Input Column | Displays the name of each input column. This attribute is read-only. |
Source Object | Displays the name and object type of the source object. Double-click the Source Object for a column to change the task flow focus to that object. |
Parameter |
Defines which of the input columns become parameters in this script. Each input column with a Parameter check mark is listed in the Parameters sub-tab. |