Real-Time Workshop |
 |
Data Store Memory and Simulink Signal Objects
If you are not familiar with Simulink data objects and signal objects, you should read Simulink Data Objects and Code Generation before reading this section.
You can associate a Data Store Memory block with a signal object, and control code generation for the block through the signal object. To do this:
- Instantiate the desired signal object, and set its
RTWInfo.StorageClass
property as you require.
- Open the block parameters dialog box for the Data Store Memory block whose state you want to associate with the signal object. Enter the name of the signal object into the Data store name field.
- Make sure that the storage class and type qualifier settings of the block parameters dialog box are compatible with those of the signal object. See Resolving Conflicts in Configuration of Parameter and Signal Objects.
- Click Apply and close the dialog box.
Note
When associating a Data Store Memory block with a signal object, the mapping between the Data store name and the signal object name must be one-to-one. If two or more identically named entities map to the same signal object, the name conflict will be flagged as an error at code generation time.
|
| Storage Classes for Data Store Memory Blocks | | External Mode |  |