Borrar filtros
Borrar filtros

How to make executable run on pc,that is generated with Simulink code generation?

1 visualización (últimos 30 días)
Target: I have made a simple lowpass filter which takes input from audio device reader and outputs it to audio device writer in simulink. I want to make(the generated executable) it run on the PC CPU using the real microphone IN and speaker OUT,without running matlab/simulink environment, which is why I generated an executable.
Problem: The executable file doesn't run,it closes itself when opened. However, the executable is generated properly as I tested it on matlab using system() command.
How can I make the executable run on my pc? I have attached a screenshot of the simulink model and code generation settings for reference.
Thanks.
  1 comentario
Vineeth Nair
Vineeth Nair el 18 de Sept. de 2018
Have you installed MATLAB Compiler Runtime (MCR) on the deployment machine? Also refer to this answer for more clarity.

Iniciar sesión para comentar.

Respuesta aceptada

Fargham Ahmad
Fargham Ahmad el 15 de Feb. de 2019
To generate code, Model Configuration Parameters is double-clicked and in Solver settings,
Solver is set to Fixed-step. Then in the Code Generation settings, under Build process panel,
Select Package code and artifacts. Click on Build model to have the code generated in the same
directory of the Simulink file.
A zip file is created in the same directory, which needs to be unzipped. Following the procedure
and then accessing the folder, the resulting EXECUTABLE can be found in otherFiles folder.

Más respuestas (0)

Etiquetas

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by