Why my simulink model is running in R2018b but not in R2015a ?
Ältere Kommentare anzeigen
Hi all,
I am using a Simulink Model originally developped under Matlab R2018a. The model is composed mostly of matlab functions blocks are more basic blocks. There is no other specific module needed than the ones included in Simulink.
The model runs fine in my R2018b matlab version.
But i have to make it run in Matlab R2015a version, because it's the only matlab version installed on the cluster i work on.
So I just Exported the model to previous version as it is suggested by matlab.
I got erros like "Undefined function or variable <my_variable>. The first assignment to a local variable determines its class"
This error occurs for only 2 variables in the whole model. These two act both as input and output for some functions. I attached a screenshot of the errors displayed by Simulink. 

I am struggling with this issue because my model works perfectly on my local machine (where i have R2018b installed).
Do you think this might be only a version problem or a deeper error may have occured ?
Thank you for any help or tips on this issue
I wish you a very good day.
Cheers,
Elie
2 Kommentare
Yasasvi Harish Kumar
am 14 Feb. 2019
Hey,
Can you attach the model that you are working on?
Regards
elie solai
am 14 Feb. 2019
Akzeptierte Antwort
Weitere Antworten (2)
qrqr
am 14 Feb. 2019
1 Stimme
2018で作ったから2015では対応できないのでは?
2018に新しくできたブロックを使っていたら2015では当然できませんよね。
3 Kommentare
madhan ravi
am 14 Feb. 2019
Translated from google:
I made it in 2018 so I can not deal with 2015? If you are using a newly created block in 2018 you can not necessarily do it in 2015.
elie solai
am 14 Feb. 2019
qrqr
am 14 Feb. 2019
That's what I think
Yogananda Jeppu
am 15 Feb. 2019
0 Stimmen
You can try the Signal Specification block from Simulink >> Signal Attributes >>. Perhaps this will work. Enable data type and signal dimension display. Format >> Port/Dsiplay >> Signal Dimensions. If you see any ? marks then that needs to be sorted out.
Kategorien
Mehr zu Simulink Functions finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!