Create Simulink Apps

Поділитися
Вставка
  • Опубліковано 8 вер 2024

КОМЕНТАРІ • 8

  • @TudorMiron
    @TudorMiron Рік тому

    Great video. Concise and informative. Thank you. May I ask a couple of questions?

    • @CES_matlabinthemiddleeast
      @CES_matlabinthemiddleeast  Рік тому

      Yes, please share your questions with us.

    • @TudorMiron
      @TudorMiron Рік тому

      @@CES_matlabinthemiddleeast Thank you. I posted my question here ua-cam.com/video/2_bRpZkkXb0/v-deo.html

  • @omaromar1953
    @omaromar1953 Рік тому

    greaattttttt video!

  • @CloudInBrain
    @CloudInBrain 10 місяців тому +1

    I had the error Unable to build Simulink Rapid Accelerator target.
    mcc failed."
    A little help please?¡

    • @gorkaelezgarai4284
      @gorkaelezgarai4284 7 місяців тому

      You have to declare all variables in the workspace and run once the simulation manually in Simulink (in rapid accelerator). This must be done before compiling your app.

  • @sivaprasad-cl7xp
    @sivaprasad-cl7xp 2 роки тому

    Hai nice video i had followed you to make my own app using matlab i had encountered an error during building an standalone app as "mcc -o app -W 'WinMain:app,version=1.0' -T link:exe -d D:\ieee\GUI\app\for_testing -v D:\ieee\GUI\app.mlapp -r 'C:\Program Files\MATLAB\R2022a\toolbox\compiler\packagingResources\default_icon.ico'
    Compiler version: 8.4 (R2022a)
    Analyzing file dependencies.
    Unable to build Simulink Rapid Accelerator target.
    mcc failed."
    please help me

  • @diegocanas3242
    @diegocanas3242 Рік тому

    Hello! I was trying to do the matlab app and I started to get the error:
    "Dot indexing into the result of a function call requires parentheses after the function name. The
    supported syntax is 'simulink().compiler'."
    On the line where I have the function "Simulink.compiler.configureForDeployment"
    This is the code I use on the button callback:
    Model_Name = ('Prueba');
    simInp = Simulink.SimulationInput(Model_Name);
    simInp = simInp.setVariable('irradiance', app.IrradianceEditField.Value);
    simInp = simInp.setVariable('temperature', app.TemperatureEditField.Value);
    simInp = simulink.compiler.configureForDeployment(simInp);


    stopTimeStr = num2str(app.SimulationTimeEditField.Value);
    simInp = simInp.setModelParameter('StopTime', stopTimeStr);
    simInp = simInp.setModelParameter('SimulationMode', 'Rapid');

    simOut = sim(simInp);
    time = simOut.tout;
    current = simOut.yout{1}.Values.Data;
    power = simOut.yout{2}.Values.Data;
    voltage = simOut.yout{3}.Values.Data;
    plot(app.UIAxes, time, current);
    plot(app.UIAxes2, time, power);
    plot(app.UIAxes3, time, voltage);
    plot(app.UIAxes, voltage, power);
    Could you please help me? Thank you!