Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Embedded Software The “Reset condition” issue of scade example in Scade Primer Reply To: The “Reset condition” issue of scade example in Scade Primer

Benjamin Descorps
Ansys Employee

Hello,

Indeed, use of the pre operator is incorrect, missing an init clause.

You can replace :

s = (restart sigma every (pre s >= max))(count ());

by, either:

s = (restart sigma every (fby(s;1;0) >= max))(count ());

or

s = (restart sigma every ((0-> pre s) >= max))(count ());

The error will be fixed in the next SCADE version.

Benjamin

[bingo_chatbox]