Use of Events and temporal logic in the Generated code
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have some question regarding the use of events and temporal logic in code generation.
Events – How are events handled in the generated code. Do they get converted to flags? 1. What happens when Events are local to the generated code? 2. What happens when the events are either input or output of the generated code?
Temporal logic: Does the delays created using temporal logic are real time in the generated code? If a delay is created using after() in the stateflow how is handles in the generated code. What is the time source for the unitary tick in the generated code?
0 Kommentare
Antworten (1)
Andrew Schenk
am 16 Jun. 2015
In the generated code, Events will be a Boolean type if the trigger type is set to "Either Edge".
If the Event output type is a function call, the generated code will directly include a call to the subsystem/chart if it is atomic, or directly inline the called subsystem/chart code. If the events are Inputs or Local, the Event will be directly represented in the generated code logic.
The code generated for discrete charts uses integer counters to track time for temporal logic instead of Simulink provided time.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!