Changing the Sample Time of a C-MEX s-function block in time simulation

I would like to change the SampleTime of a C-MEX Function Block in time simulation, I've read that it is impossible. I'm trying to find a workaround for this feature using a C-MEX async interrupt block. If I do that, is it possible to recalculate and update the C-MEX async block in simulation time?
Thank's!
Janio Gabriel

Antworten (1)

Kaustubha Govind
Kaustubha Govind am 10 Aug. 2011

0 Stimmen

Are you using a variable-step solver? If yes, you may find the Variable Sample Time C-MEX S-function example useful.

Diese Frage ist geschlossen.

Gefragt:

am 8 Aug. 2011

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by