Output setted from c-mex is sometime right, sometime null
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all! I stop my simulation with Stop block, setting from C-mex file the respective output to 1 when a condition is verified. If this condition is valid, before to stop, I set a few values in a second output vector that I want to read externally in a M-file. I don't know why, but some times it give me in output the right values, other times it give me a null output! This problem has to do with the ode solver I use (ode45)?
Thanks in advance!
0 Kommentare
Akzeptierte Antwort
Kaustubha Govind
am 9 Aug. 2012
More likely that there is something wrong with the way your S-function is written. Could you post your mdlOutputs implementation?
8 Kommentare
Kaustubha Govind
am 13 Aug. 2012
Strange. I'm out of ideas - perhaps you should send your S-function to MathWorks Tech Support so they can investigate it more closely?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!