Accessing Non-Volatile Variables
SWCs sthat use NV data mapping can only be exported to ASCET V6.4.6 or newer. |
When you map non-volatile variables, follow the mapping rules.
- Specify the required NVData interface prototype(s).
Open the NV-DataMapping tab.
The NV Variables column in the Mapping field lists all unmapped non-volatile variables of scalar, enumeration, array, matrix, or record type from all components directly or indirectly used in the software component.
The NV-Data Interface elements column in the Mapping field is used to map the imported parameters.
The mapping rules defined in NV Data Mapping apply.
- If necessary, open the Mapping menu and select Update to import changes in the classes/modules and NVData interfaces into the SWC.
- If desired, filter the columns.
To use automatic mapping, proceed
as follows.
- In the combo box, enter or select a pattern for auto-mapping.
Do one of the following:
- Click the Auto-Mapping button.
- Open the Mapping menu and select Auto-Mapping.
- Right-click in the NV-Data Mapping view and select Auto-Mapping from the context menu.
All imported and local variables and NVData interface elements (including elements of records in the calibration interface) with matching element name and type are mapped. The results are shown in the Mapping field.
The mapped non-volatile variable and NVData interface element are removed from the upper table.
See Automatic Mapping for more information on how auto-mapping works.
To map imported and local variables and NVData interface elements manually in the Mapping field, proceed
as follows.
Double-click in a cell in the NV-Data Interface elements column.
A list with all available NVData interface elements (including elements of records in the NVData interface) opens.
Select an NVData interface element.
The mapping is performed. The results are shown in the Mapping field.
The mapped non-volatile variable and NVData interface element are removed from the upper table.
To map imported and local variables and NVData interface elements manually in the upper table (hidden by default), proceed
as follows.
- If necessary, click
to show the upper table. - In the NV Variables column of the upper table, select an imported parameter.
In the NV-Data Interface elements column, select a calibration parameter.
The
button becomes available if the selected elements can be mapped.
Click the
button to map the selected elements.
Or
Drag a non-volatile variable from the NV Variables column and drop it onto a suitable element in the NV-Data Interface elements column.
The mapping is performed. The results are shown in the Mapping field.
The mapped non-volatile variable and NVData interface element are removed from the upper table.
- If desired, import an existing mapping.
To remove a mapping, proceed
as follows.
- In the Mapping field, NV Variables or NV-Data Interface elements column, select a mapped element.
Do one of the following:
- Open the context menu or the Mapping menu and select Remove.
- Press <Delete>.
Or
Double-click a cell in the NV-Data Interface elements column and select <None>.
The mapping is removed. The non-volatile variable and the NVData interface element reappear in the upper table.
The middle column in the Mapping field shows the mapping status:
– unmapped /
– mapping is valid /
– mapping is invalid.
See also
Example: Accessing Non-Volatile Variables
NV Data Mapping
NV-Data Mapping View
Filtering the Mapping Views
Importing Mappings
Exporting Mappings
Specifying a SenderReceiver or NVData Interface Prototype