Repack Values Express VI

Owning Palette: Signal Manipulation Express VIs

Requires: Base Development System

Accepts signals with any number of data points and produces packets of signals that use a packet size you specify.

Details  

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs
 Add to the block diagram  Find on the palette

Dialog Box Options

ParameterDescription
Output segment sizeSpecifies the number of samples to include in each output segment. The default is 100.

Block Diagram Inputs

ParameterDescription
SignalsContains the input signal or signals.
Data IndexContains the index of the repacked values. When the Express VI is in a While Loop, wire Data Index to the iteration terminal to take a larger array and iteratively generate packets of smaller size. If you do not wire Data Index to the iteration terminal, smaller data segments are collected into one larger packet.
error inDescribes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
ResultReturns the resulting data based on the configuration of the Express VI.
error outContains error information. This output provides standard error out functionality.
Data AvailableIndicates if data is available to make a packet.

Repack Values Details

To take a larger array and iteratively generate packets of smaller size, place the Repack Values Express VI in a While Loop and wire the Data Index input to the iteration terminal. Select the packet size for the Repack Values Express VI. The VI reads the Signals input once into a buffer during the first iteration of the While Loop. LabVIEW ignores this input for subsequent iterations. On each loop iteration, the Result output returns a segment of data starting from the first data point in the buffer. The Data Available output remains TRUE until there are not enough data points left to make a packet.

To collect smaller data segments into one larger packet, place the Repack Values Express VI in a While Loop and do not wire the Data Index input or wire a value of 0 to the Data Index input. The VI accepts new input on every loop iteration. The Data Available output remains FALSE until the VI has accepted enough data points to make a packet of the size you specified. When this Express VI returns the result packet, the Data Available output is TRUE. On the next iteration, it reverts back to FALSE.

This Express VI operates similarly to the following VIs and functions:

Get Waveform Subset