how to access Simulink Compiler (or any other way for app designer and simulink interface)?

Target: Real-time interface between app designer and simulink (found some appropriate solution if use Simulink Compiler but unable to access or use this Compiler)

6 Commenti

What do you mean by "unable to access or use the Simulink Compiler"?
  • Do you have a lincense for Simulink Compiler?
  • If yes, are you getting some kind of error while trying to access the Simulink Compiler?
Someone else happened to ask https://www.mathworks.com/matlabcentral/answers/1816145-setblockparameters-not-working-on-app-designer today, in which they were trying to set block parameters within a deployed app, but were having problems because SetBlockParameters() is not supported by Simulink Compiler. I found a function that can be used that looks like it is supported by Simulink Compiler.
My interpretation is taht @Muhammad Rehman is trying to deploy an app, and is not able to make some of the necessary calls to change parameters because they are not supported for compiling. I think they are saying that they do not have access to Simulink Compiler, though, and that they are asking what other route (other than Simulink Compiler) that they could use to dynamically tune a Simulink model from a compiled app.
If I am right, then I think the answer is that it cannot be done without Simulink Compiler.
FIrst of all, thank you guys @Harshit Gupta , @Walter Roberson for your response to my query.
The problem is, after necessary functions and callbacks, when I try to run the model, the error occur as error using Simulink.SimulationUnput/sim unable to build a standalone executable to simulate the model "Model_Name" in rapid accelerator mode. However, when I run the model in normal mode in order to check wheather the app and simulink model are giving the output as per requirements, then there is no error and app gives output but that output is not real-time i.e. it just gives the outputs all at once and even if I change the parameters, then again it draws new outputs on the graphs all at once, but my goal is all inputs and ouputs (signals etc.) should be seen as moving in real-time while giving output. (As a reference to be more clear about my target, the Lorentz_System_Model is example for that, https://www.mathworks.com/help/slcompiler/ug/lorenzsystemexample.html ).
We are unclear about whether you have Simulink Compiler ?
It is not possible to compile MATLAB calls to Simulink unless you have Simulink Compiler.
Yeah sure I have License for MATLAB along with all necessary tools installed (i.e. simulink compiler and MATLAB compiler, I have cross checked it to confirm from add-ons that these compilers are installed).
@Harshit Gupta @Walter Roberson Thank you for your favorable response to my query to make things easier and understandable for me, these are the good suggestions that helped to focus on my problem deeply.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Simulink Compiler in Centro assistenza e File Exchange

Prodotti

Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by