Can one Function call Trigger Multiple Subsystems?

4 visualizaciones (últimos 30 días)
Richard Frei
Richard Frei el 27 de Nov. de 2024
Comentada: Fangjun Jiang el 27 de Nov. de 2024
Hi, im using the C2000 Microcontroller Blockset and im trying to trigger Multiple Function call Subsystems with one Call (Interrrupt).
I can not find any way to make it possible. The reason why i want to call multiply Subsystems instead of moveing those systems into one subystem, is to group them by function and not by time base.
Im not sure if the problem is only with the C2000 Blockset or if it is not supported by Simulink.
Thanks in advance.

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 27 de Nov. de 2024
  2 comentarios
Richard Frei
Richard Frei el 27 de Nov. de 2024
Thank you for the Answer. I have already tried the Function-Call Splitter, but it does not work.
After some experimenting (and deconstruction of the C2000 Interrupt Blocks) i found that it only works if i have only one interrupt per block. Otherwise it will fail with:
"Error:A function-call signal, originating at 'Output Port 1' of initiator 'CompilationModel_2/ADC_ISR_Setup/ECSoC/ECSimCodegen/Hardware Interrupt', is branched incorrectly. The function call initiator CompilationModel_2/ADC_ISR_Setup/ECSoC/ECSimCodegen/Hardware Interrupt' emits a function-call signal with multiple elements. All function-call initiators within a branched function-call network must emit scalar function-call signals.".
So it is a Problem with the C2000 Blocksets, but i dont know how to get around it.
Fangjun Jiang
Fangjun Jiang el 27 de Nov. de 2024
Yes. That seems to be constrained by this particular hardware related block, not a generic approach.
You could use this interrupt to trigger a subsystem. In the subsystem, add a function-call generator and a function-call split.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos


Versión

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by