Not able to tune a variable in a Standalone Application that uses sim command to run a model.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to create and deploy a standalone application (.mlapp) that runs a simulation model of an EV using sim command. In the driver model, i have a variant subsystem Driver which based on an expression for a variable (wot_Driver==false default) PID Driver subsystem or WOT Driver subsystem is activated. After creating a simulation object and assigning value to all the tunable variables from user input, pushing the run button will assign inputs to model block parameters and confugure for deployment then simulate and plot the results. While the execution of sim command in the .mlapp after configurefordeployment command, tuned values of all the tunable variables are assigned to model blocks except this wot_Driver variable, I'm continuously getting this warning "The variable 'wot_Driver' (in the workspace 'global workspace') was tuned but its tuned value was not used". The value for wot_Driver used by simulation object in the app is the last value i used for the variable when i created in the global workspace to run the model. In the app, no matter i change the value of this wot_Driver variable, i'm getting the simulation being run for the global workspace value of that variable irrespective of whatever the value i enter through user input.
0 comentarios
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!