Effacer les filtres
Effacer les filtres

How to improve the speed of S-Fcn or else tell me some other function which will run at each sample time.

2 vues (au cours des 30 derniers jours)
Im having a simulink model and I want to update its output value to guide panel at each sample time. So for that I tried "S-Function" and inbuilt matlab syntax "add_exec_event_listener". But both are reducing my simulation speed in huge amount.
I have 130 outputs from model. Without S-Fcn model is running 22 samples/sec. But if I add S-Fcn it is less than a sample/sec.
So please provide me some ideas to improve the speed or else tell me some other function which will run at each sample time.

Réponse acceptée

Vivek
Vivek le 28 Jan 2014
use c mex

Plus de réponses (0)

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by