Borrar filtros
Borrar filtros

Reset Stateflow chart externally

1 visualización (últimos 30 días)
Song
Song el 9 de Feb. de 2016
Respondida: Fernando Liozzi el 8 de Jun. de 2019
I have a question about resetting a the stateflow chart kind of externally and "wireless"
Attached is a sample model file, you can see the function A or B will be called from a father stateflow chart.
Within function A and B, there is a sub-stateflow chart, which memorize their states.
My question is, how can I reset these sub-stateflow charts' state from function_A_Init() or function_B_Int()?
One thing comes across my mind is to use DataMemoryStore. But is there a better way?

Respuestas (1)

Fernando Liozzi
Fernando Liozzi el 8 de Jun. de 2019
Hi, I'm with a similar question. I am implementing a modbus for code generation to a PIC18. The problem I have is that I can not reset the state machine when the dead time of 3.5 characters has elapsed, around 4 ms. I do this with a timer. For other blocks, I manage to generate codes at different execution times in multitasking mode, and I have no problems. It would even be very good if simulink people implemented blocks for the modbus protocol and that allows c / c ++ code generation.
Thanks.

Categorías

Más información sobre Complex Logic en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by