Conversion Methods Tab
Last updated
Last updated
Copyright © 2024 | All Rights Reserved
Conversion Methods are formulas and tables applied to Measurements, Characteristics, and Axis Pts. They are declared with the keyword COMPU_METHOD within the A2L file. The Conversion Methods tab has a table to display all A2L file Conversion Method items and their properties. Each row (below the 1st filtering row) defines a Conversion Method and each column is a property. The default column configuration is shown in Figure 1.
Columns in the table can be filtered, reorganized, added, and hidden. These table features are common across all tabs in this area. To add items to the table you can:
Use the Create tool or right click menu selection.
Import an existing A2L file.
To edit items already in the table with the Edit Conversion Methods dialog you can:
Double click on a cell in the table.
Use the Edit tool or right click menu selection.
Refer to Table 1 below for a description of each column on the Conversion Methods tab.
Name
Unique identifier of the Conversion Method. Here are the main requirements for this field:
Max overall length = 1024 characters.
Max partial string length = 128 characters.
Allowed characters: A - Z, a - z, 0 - 9, underscores, periods, and brackets [ ].
Must NOT contain spaces.
First character must be a letter or an underscore.
Any brackets must occur in pairs at the end of a partial string.
Any bracket pairs must surround a number or string.
Name is case sensitive. (i.e. "b" and "B" are considered unique)
If in doubt about valid names, please refer to the ASAM specifications.
Type
The ASAP2 Editor supports 5 types of conversions:
TAB_INTP - table with interpolation.
TAB_NOINTP - table without interpolation.
TAB_VERB - verbal conversion table.
RAT_FUNC - fractional rational function f(x)=(axx + bx + c)/(dxx + ex + f), where coefficients 'a' through 'f' are specified properties.
FORM - formula as specified in the Formula property.
Format
Display formatting applied to numerical values. This Format will be overridden by any Format properties specific to Measurements, Characteristics, and Axis Pts. The syntax for this field is: %Length.Layout
Length = overall length
Layout = number of decimal places
Unit
A physical unit label like Volts, RPM, kph, etc.
Formula
Formula specified as a function of x. Multiple references use syntax X1, X2, X3, etc where X1 references the first input, X2 the second, etc. If there is only one reference in the formula then X can be used instead of X1.
Coeffs
Coefficient values for the Conversion Type = RAT_FUNC. f(x)=(axx + bx + c)/(dxx + ex + f)
RefTable
Table used for the TAB_x conversion types. Dropdown selections come from the Verbal Conversion Tables tab.
LongIdentifier
Comment or description.