Examples: Rules for Formulas

An ASCET model contains two parameters named cont and input. Both elements are of model data type cont.

Example for Rule A

cont is implemented with the implementation type real64 and the formula linear (see Closedhere).

The following warning is issued during code generation:

WARNING(WIa62): Element "cont" using float implementation must have identity formula --- formula "ident" is used instead of formula "linear"

The ASAM-MCD-2MC code generated for cont looks Closedas follows.

/begin CHARACTERISTIC cont.Module_BDE

   ""

   VALUE

   0x0

   STANDARD_VALUE_R64

   0.0

ident

   1.0

   6553.5

   ...

/end CHARACTERISTIC

Example for Rule B

input is implemented with the implementation type uint16 and the formula nonlinear (see Closedhere).

If input is connected to, e.g., Closeda mux operator, code generation works without error.

The ASAM-MCD-2MC code generated for input looks Closedas follows.

/begin CHARACTERISTIC input.Module_BDE

   ""

   VALUE

   0x0

   STANDARD_VALUE_U16

   0.0

nonlinear

   -0.4984740978103304

   9.5

   ...

/end CHARACTERISTIC

If input is connected to, e.g., Closedan addition operator, the following warning is issued during code generation.

Error (MMdl623) - Operation add is not supported for non-linear formula %2