Target Requirements : Data Types Introduced to the Intrinsics Library : Report Elements for Generic Charts

Report Elements for Generic Charts

If a traced or I/O mapped element is passed to some generic chart as a parameter, its report element is also passed to the generic chart as well. In this case, an additional parameter of the generic chart is generated. All other attributes of data item in the generic are generated for the report element as well. This includes a macro for accessing the report element, its declaration, and so on.

Suppose now that user decides to do tracing or I/O mapping for some local variable in some generic chart. In this case, the user must provide the full name of the data item (including the instance name) for every instance of the generic in the model. In this case, a report element is generated within the generic and the context-switching mechanism ensures that each instance has a separate report element. The generated code ensures also that such report elements are initialized separately for each instance of the generic.