How to I run an App from App Designer in a similar way as in the " Deploying A Simulation App Using Simulink Compiler Example"
4 views (last 30 days)
Show older comments
I am a new learner of the App Designer and I have refered the examples of Mass Spring Damper model to simulate a Simulink model via an app from App Designer. The extraction of data from Simulink is done through the outport and simout. I wish to conduct the same simulation for my PID closed loop tuning Simulink model. However, after following the steps in the example and comparing the codes of the example, the message below always appear when I run the app in App Designer.
Check for missing argument or incorrect argument data type in call to function 'isvalid'.
Error in appdesigner.internal.model.AppModel/onCleanupRunningAppReference (line 570)
if isvalid(obj.RunningApp)
Error in appdesigner.internal.model.AppModel.runAppHelper (line 682)
currentAppModel.onCleanupRunningAppReference();
Error in
appdesigner.internal.model.AppModel>@()appdesigner.internal.model.AppModel.runAppHelper(obj,fullFileName,appArguments)
(line 524)
funcHandle = @()appdesigner.internal.model.AppModel.runAppHelper(obj, fullFileName,
appArguments);
May I know where does the issue comes from? Thanks
0 Comments
Answers (1)
Dan Hernandez
on 2 Dec 2021
I started to see this error when I was trying to follow a similar approach, that is building an App along with a Simulink model based on one of the existing library examples.
In my case the error seemed to be caused by the fact both my Simulink model and the App file name were the same:
simpleModel.slx % Simulink model
simpleModel.mlapp % App
In order to get around the error just rename one so that they are different from each other.
0 Comments
See Also
Categories
Find more on Prepare Model Inputs and Outputs in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!