Does programmatically adjusting the Schedule Editor order & writing it back to an export function call model set the block priorities too?

10 visualizaciones (últimos 30 días)
I have a composition model created in 2022b using an ARXML import. I have an external list of execution order of the various runnables contained within the composition model, which are under 2-3 layers of model reference and are triggered by export function call ports. I have a simple function that opens my external order list, extracts the existing Schedule Editor order as initially determined by Simulink (which doens't match the desired order of my external list), sort the order of the Schedule Editor object, then write the updated schedule back into the model. However I've noticed that the function call port blocks are having their Priority field written to, and this was not expected by me. Is this behavior anticipated by writing the updated schedule back into the model?

Respuestas (1)

Jaimin
Jaimin el 23 de Dic. de 2024 a las 6:33
In Simulink, priorities determine the execution order of blocks at the same hierarchical level triggered by the same event. Modifying the schedule can lead to automatic adjustments in priorities to maintain the desired execution sequence. Function call ports are linked to the scheduling mechanism, so changing the order of runnables might alter priority settings to ensure consistent model behavior. Using the Schedule Editor to update execution order may internally adjust priorities, explaining any unexpected changes in the Priority field.
To address the issue of unexpected priority changes, consider the following approaches:
  • Manual Priority Adjustment: After updating the schedule, manually set the priorities of the function call port blocks to ensure they align with your expected execution order.
  • Model Configuration: Review the model's configuration parameters related to priorities and scheduling to identify any settings that might be influencing this behavior.
For more information kindly refer following MathWorks documentation.
I hope this will be helpful.

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by