Indexer Function
Owning Palette: Utilities Functions
Installed With: Control Design and Simulation Module
Indexes a waveform or array by the current simulation time.
Dialog Box Options |
Block Diagram Inputs |
Block Diagram Outputs |
Place on the block diagram | Find on the Functions palette |
Dialog Box Options
Parameter | Description |
---|---|
Polymorphic instance | Specifies whether the type of the Input to this function is an Array, Point Array, Waveform, XY Graph, 2D Array, or 2D Point Array. |
Parameters | Lists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box. |
Preview | Displays a graphical preview, if available, of the function output or configuration. |
Parameter Information | Contains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box. |
Parameter source | Specifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box. |
Extrapolate? | Extrapolate? is TRUE if you want this function to extrapolate linearly values outside of the values you specify in the Input. Extrapolate? is FALSE if you do not want this function to extrapolate linearly values outside the value you specify in the Input. The default value is FALSE. |
Indexing Mode | Specifies the method by which this function indexes the Input. The available methods depend the value you specify for the Polymorphic instance parameter. If you specify the Array or 2D Array version of this function, you can select from the following methods:
|
Indexed Dimension | Specifies which dimension of this two-dimensional array contains the array index. You can choose from Columns or Rows. This parameter is valid only when you select 2D Array from the Polymorphic instance pull-down menu. |
Block Diagram Inputs
Parameter | Description |
---|---|
Extrapolate? | Extrapolate? is TRUE if you want this function to extrapolate linearly values outside of the values you specify in the Input. Extrapolate? is FALSE if you do not want this function to extrapolate linearly values outside the value you specify in the Input. The default value is FALSE. |
Input | Specifies the input to this function. This input either is a waveform, XY graph, point array, array, two-dimensional array, or two-dimensional point array, depending on the value you select from the Polymorphic instance parameter on the configuration dialog box of this function. You can choose from the following options:
|
Indexing Mode | Specifies the method by which this function indexes the Input. The available methods depend the value you specify for the Polymorphic instance parameter. If you specify the Array or 2D Array version of this function, you can select from the following methods:
|
Indexed Dimension | Specifies which dimension of this two-dimensional array contains the array index. You can choose from Columns or Rows. This parameter is valid only when you select 2D Array from the Polymorphic instance pull-down menu. |
Block Diagram Outputs
Parameter | Description |
---|---|
Interpolated value | Returns the output value associated with the current simulation time using the method you specify for the Indexing Mode parameter. |
Indexer Details
This function operates like the auto-indexing input tunnel of a While Loop or For Loop. However unlike the auto-indexing input tunnel, this function indexes the waveform or array based on the simulation time rather than the iteration of the loop.
This function linearly interpolates the value if there is no point in the signal that directly corresponds to the current simulation time.
Feedthrough Behavior
All input/output pairs of this function have direct feedthrough behavior.
Example
Refer to the indexer VI in the labview\examples\Control and Simulation\Simulation\Utilities directory for an example of using the Indexer VI.