Base section to index

BaseSectionToIndex
The Base section to index I/O "fills gaps" in data with the last known value. The typical application of the Base section to index I/O is to "fill" gaps in data retrieved from CAN messages using a CAN analyzer I/O and J1939 decoder I/O.

I/O Base section to index example

Figure 1: A CAN signal with decoded J1939 information showing the engine speed.

Figure 1 shows a measurement on a CAN bus signal containing J1939 encoded messages. The green line in the graph is the CAN signal. Several CAN message in this measurement contain information on the engine speed, which is extracted using the J1939 decoder I/O. The purple line in the graph shows the engine speed information. Only at the moments of the actual CAN messages, engine speed output of the J1939 decoder contains engine speed information, the rest of the time the output is undefined (in the graph shown as zero), causing "gaps" in the line in the graph. Using a Meter sink to determine e.g. minimum or average engine speed will result in wrong readings due to these gaps.

Using the Base section to index I/O with Continuous enabled (default), these gaps are filled with the previous valid value, as can be seen in the yellow line in the graph. The meter is now able to show realistic values.

Properties

To control the behavior of the Base section to index I/O, several properties and actions are available. These can be accessed through a popup menu which is shown when the I/O is right clicked. For more information, see common properties and actions.

Position

The property Position determines the position of the output data values relative to their input values. By default the output data values are placed at the beginning of input data values, such as CAN messages. Predefined values Begin (default), Middle and End are available, as well as a User defined... setting. The user defined setting requires a floating point number between 0 and 1, where 0 equals Begin and 1 equals End.

Continuous

The property Continuous determines whether the gaps are filled. This property is enabled by default. When disabled, the original value is replaced by a one sample wide value at the position determined by the Position property.

Common properties and actions

Related information

CAN analyzer

The CAN analyzer I/O decodes analog data to CAN data.

J1939 decoder

The J1939 decoder I/O (aka J1939 analyzer) extracts SAE J1939 SPN values from CAN messages.