Using Dymola model in Simulink gives error : newDymolaGui
Show older comments
I have a Dymola model which I exported to Simulink as an s-function. In my Simulink model it is shown as a "DymolaBlock". By using the sim command in Matlab I start the model which works without problems. But now i´m trying to run the simulation several times which causes following error after a few simulation runs:
Error evaluating 'InitFcn' callback of SubSystem block (mask)
'DP/DymolaBlock/compmodel'.
Callback string is 'newDymolaGui('DP/DymolaBlock','Verify');'
Trying to recombile the DymolaBlock gives me the following:
Error using ddeexec
The first argument 'channel' is not valid.
Error in newDymolaGuiJava
Error in newDymolaGuiJava
Error in newDymolaGuiJava
Error in newDymolaGuiJava
Error in newDymolaGui
Error while evaluating UIControl Callback.
I have to restart Matlab to get the model to work again. Anyone knows what the cause of this problem is, and how to get rid of it?
Accepted Answer
More Answers (0)
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!