Main Content

cgsl_0409: Data transfer for component deployment

ID: Titlecgsl_0409: Data transfer for component deployment
DescriptionTo model data transfers:
AUse signals between callable functions.
BWhen branching or merging transfer signals, in the Embedded Coder dictionary, add $X to the Function Naming Rule fields. Compliance with this rule is enforced during code generation.
CDo not branch data transfer signals to the root-level output port. Compliance with this rule is enforced during code generation.
NotesWhen merging data transfer signals, ensure that both signals are mutually exclusive.
RationaleThe generated code aligns with the data communication method required by the platform environment for concurrent execution.
Model Advisor CheckA Model Advisor check is not provided for this guideline.
Examples

Model that shows merged signals.

void CD_accumulator(void)
.
.
.
  tmpIrvIRead = get_CD_accumulator_DataTransfer();
.
.
.

void CD_integrator(void)
.
.
.
  tmp = set_CD_integrator_DataTransfer();
.
.
.

void CD_Aperiodic2(void) 
.
.
  tmp = set_CD_Aperiodic2_DataTransfer(); 
.
.
.
 

Version History

expand all

Introduced in R2022b