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


icon

Dialog Box Options

Option Description
Output segment size

Specifies the number of samples to include in each output segment. The default is 100.

Inputs/Outputs

  • cexpdynwdt.png Signals

    Contains the input signal or signals.

  • cerrcodeclst.png error in (no error)

    Describes error conditions that occur before this node runs.

  • ci16.png Data Index

    Contains 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.

  • ibool.png Data Available

    Indicates if data is available to make a packet.

  • iexpdynwdt.png Result

    Returns the resulting data based on the configuration of the Express VI.

  • ierrcodeclst.png error out

    Contains error information. This output provides standard error out functionality.

  • 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.