How do you create a Simulink Block for hardware when a .dll is provided?

3 visualizaciones (últimos 30 días)
After watching the video Creating a Simulink Block Using MATLAB Code, which shows how to create a Simulink Block for hardware when you have the C/C++ source files, I am wondering how you would create a block if you had a .dll file instead of C/C++ source code.
(This question based on the comment made to the File Exchange entry associated with the aforementioned video)

Respuesta aceptada

MathWorks Student Competitions Team
MathWorks Student Competitions Team el 27 de Feb. de 2015
Editada: MathWorks Support Team el 2 de Abr. de 2020
You should be able to add a precompiled library to your Simulink Block in the same way described in the example:
The method for creating Simulink Blocks described in the video mentioned in the question uses a MATLAB class that inherits from the coder.ExternalDependency class, just like the class in this example. This example shows the functions:
  • buildInfo.addLinkObjects
  • buildInfo.addNonBuildFiles
which, in this case, are used to add a .lib file and a .dll file to the buildInfo respectively.

Más respuestas (0)

Categorías

Más información sobre Embedded Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by