Main Content
cgsl_0408: Partial data send for component deployment
ID: Title | cgsl_0408: Partial data send for component deployment | |
---|---|---|
Description | To model a partial data send, set the data communication method to Direct Access and: | |
A | Use an Assignment block to model mutually-exclusive partial write operations. | |
B | Use a Merge block when writing data from multiple functions. | |
C | Configure the outports on the signal path of the component root-level outport for the partial data send as virtual. To do so, select Outport block parameter Ensure outport is virtual. | |
D | Map the root-level outport for the partial data send to a service interface that is configured for direct-access data communication. The signal data is not safeguarded for concurrent access. | |
Notes | This guideline is only applicable for the export-function modeling style. An Out Bus Element block cannot be used when modeling partial data write. | |
Rationale | Promotes efficient code by avoiding data copies. | |
Model Advisor Check | Verify this guideline by using Model Advisor check Check usage of partial data send (Embedded Coder). | |
Examples |
void Run1(void) { Out[1] = In + 1.0; } void Run2(void) { Out[0] = In; } |
See Also
Code Interfaces and Code Interface Specification (Embedded Coder)
Data Communication Methods (Embedded Coder)
Embedded Coder Dictionary (Embedded Coder)
Target Environment Services (Embedded Coder)