Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Is it possible to run an s-function containing a hybrid model (continuous and discrete blocks) in a model with a lower time step size?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to run an s-function containing a hybrid model (continuous and discrete blocks) in a model with a lower time step size?
The time step size of the s-function is a multiple of the time step size of the main model. I put rate transition blocks at all ports of the s-function, but the simulation won't run.
Is this a general problem or might there be some unlucky settings that keep the simulation from running?
0 Commenti
Risposte (2)
Don Zheng
il 8 Giu 2017
Can you provide an example model? It is unclear what you mean by "an S-function containing a hybrid model".
0 Commenti
Andreas Schmidt
il 9 Giu 2017
1 Commento
Don Zheng
il 9 Giu 2017
I was able to create an S-fcn from a subsystem containing a Constant block with 'Inf' time step (continuous) and a Constant block with '1' second time step (discrete). When running this S-fcn in a model with 0.1s fundamental sample time, things seem to work fine. Do you have an error message when running your model?
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!