Main Content

cgsl_0408: Partial data send for component deployment

ID: Titlecgsl_0408: Partial data send for component deployment
Description

To model a partial data send, set the data communication method to Direct Access and:

AUse an Assignment block to model mutually-exclusive partial write operations.
BUse a Merge block when writing data from multiple functions.
CConfigure 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.
DMap 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.
NotesThis 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 CheckVerify this guideline by using Model Advisor check Check usage of partial data send (Embedded Coder).
Examples

Modeling for partial data send

void Run1(void)
{
   Out[1] = In + 1.0;
}

void Run2(void)
{
   Out[0] = In;
}

Version History

expand all

Introduced in R2022b