State mapper
The State mapper channel maps the input channel into a discrete state output channel based on the mapping conditions.
NOTE
The State mapper channel can consume significant CX23-R/eDAQXR computational resources depending on the sample rate and the number of mapping conditions defined.
- State mapper options
- Use default output value: When selected, output a default value when the input channel does not meet any of the mapping conditions. If not selected, the output remains in its existing state.
- Default out (always): Enter a default value to output if the first input sample does not meet any mapping conditions. When Use default output value is selected, the channel outputs the default value throughout the test run if the input does not meet any mapping conditions.
- Latch period (secs): Enter the time in seconds that the input channel must consistently meet the mapping conditions before the output state switches. The latch period is similar to a duty cycle on the output state preventing the output state from switching for at least this period of time. This feature can eliminate state switching transients in the output channel data stream. If the latch period is zero, the output state switches on each sample.
- State mapper values
- Enter Min, Max and Value numbers in the fields of the grid to define state mapper conditions. When the input is greater than or equal to the Min and less than the Max, the channel outputs the specified Value. Several methods may be used to enter numbers defining state mapper conditions.
- The default method is using the Grid. Each row represents one condition with Min, Max and Value fields. The system supports up to 32 mapping conditions, which is the number of rows accessible using the elevator bar on the right side of the grid.
- Click Editor to change to the text editor input method. In the text editor, each line represents one condition with the Min, Max and Value entries separated by at least one space.
- Switching between these two input methods retains all entered conditions which are reformatted appropriately.
- Alternatively, click Import to import previously created state mapper conditions from an ASCII file. Each line of the ASCII file represents one condition with the Min, Max and Value entries separated by a space or tab. Importing state mapper conditions deletes any manually entered values. The conditions are shown in the grid or text editor after import.
- Click Clear to clear all state mapper values.