Create/Edit Conversion Methods
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. To create or edit Conversion Methods in an A2L file use the Create or Edit tools from the Edit group in the main toolbar while the Conversion Methods tab is active in the A2L file area. A dialog will open similar to that shown in Figure 1.
Refer to Table 1 below for a brief description of each property. Use the OK button to close the dialog and save any changes. Use the Cancel button to close the dialog without saving any changes.
Property | Description |
---|---|
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.
Long Identifier
Comment or description.
Conversion 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.
Conversion Table
Table used for the TAB_x conversion types. Dropdown selections come from the Verbal Conversion Tables tab.
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.
Coefficients 'a' through 'f'
Coefficient values for the Conversion Type = RAT_FUNC. f(x)=(axx + bx + c)/(dxx + ex + f)
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
Units
A physical unit label like Volts, RPM, kph, etc.