Answered
How to call a .dll and .h into Simulink Realtime?
You can use the C Caller block to do this. Rather than source code, provide the .dll in the "Libraries" tab of the Custom Code ...

4 månader ago | 0

Answered
DSP matlab code convert to C++ using matlab coder
Field can not be added to structures dynamically. For example, inside pvTSM.m, the functions stft and istft are called. A para...

5 månader ago | 1

| accepted

Answered
Simulink Code Generation Workflow for Subsystem
Converting a subsystem to be atomic will disable some cross boundary optimizations. The benefit of making the subsystem atomic ...

5 månader ago | 1

| accepted

Answered
Post Code Gen Script: What is "codertarget.postCodeGenHookCommand(h)"?
The post code generation command is a MATLAB function with one argument "h", which is BuildInfo. By default for Simulink Coder ...

5 månader ago | 0

Answered
How to generate a single data definition file for several models accessing to the same data dictionary?
Is there a reason why you are generating code for each model seperately? When you do this, the xxx.c file will only contain para...

5 månader ago | 0

Answered
Matlab Coder - How to generate C++ header files in different directory than source files?
You could do this with a simple MATLAB script that runs the codegen command and then moves .h files to desired location.

5 månader ago | 0

Answered
Combining Two TLC Files for Model Compilation
https://www.mathworks.com/help/rtw/ug/customizing-system-target-files.html

5 månader ago | 0

Answered
I am getting below error while doing ctrl+d of one model
Sometimes parallel builds masks a particular model problem. Turn off parallel builds by going to configuration parameters .. Mo...

6 månader ago | 0

Answered
Is it possible to assign the size of an input port to variables instead of fixed constants?
https://www.mathworks.com/help/simulink/ug/unbounded-variable-size-signals.html#

6 månader ago | 0

| accepted

Answered
Embedded coder: Code generation data types
This can be accomplished by picking a 64 bit custom processor on the Hardware tab. See attached model.

6 månader ago | 0

| accepted

Answered
Why no output file from standalone Simulink Coder executable?
When running a .exe created from Simulink, there is no such thing as a "workspace" for the code to write to. You need to use a ...

6 månader ago | 0

Answered
why i am recieve this error message when i am trying to generate the code ?
DId you follow the recommendations and either move to a directory without spaces or switch to a different compiler?

6 månader ago | 0

Answered
Utilize simulink generated code
You could try Simulink Compiler. https://www.mathworks.com/products/simulink-compiler.html

6 månader ago | 0

Answered
Can i burn a C code on ARM boards in simulink?
Yes, this can be done with the one of the ARM support packages. https://www.mathworks.com/hardware-support/arm.html?s_tid=srcht...

6 månader ago | 0

Answered
How to compile C2000 driverlib calls into an S function
S-Function builder assumes that you want to use the external C code for both Simulink simulation and code generation. For simula...

6 månader ago | 0

Answered
Simulink DDS Blockset: problem with sequence <string> in topic
Sequences ( i.e. variable length vectors) are not currently supported by the DDS Blockset for any Simulink data type. In addit...

6 månader ago | 1

| accepted

Answered
LibSystemOutputCustomCode() return function inlining error
This block should allow you to insert code into the step() function: https://www.mathworks.com/help/ecoder/ref/systemupdate.html...

7 månader ago | 0

Answered
How to create a .dll from a .slx?
Do you get any error messages? Make sure you don't have the "generate code only" box checked. Thanks. Mark.

7 månader ago | 0

Answered
Overwriting default mex compiler flags via Simulink C-Caller block
One approach you could try is to compile your external C++14 code into it's own library outside of MATLAB/Simulink using g++ wit...

7 månader ago | 0

Answered
MATLAB Coder - generate code but build separately?
The con for this approach is that you may have to adjust your build process if the names of .c or .h files change due to changes...

7 månader ago | 0

| accepted

Answered
wANTED TO GENERATE C CODE OF SIMULINK
This looks like a code generation error for the GPIO block. I recommend sending Simulink model and error message to support@mat...

12 månader ago | 0

Answered
Best way to wrap C++ library to be used in MATLAB, Simulink, and others?
For both Simulink and MATLAB, it is easiest to first compile your C++ code into a library, then use the following approaches for...

12 månader ago | 1

| accepted

Answered
Warning: Name is nonexistent or not a directory in code generation
Did you enter info in the "Include Headers", "Include directories" and "Source Files" sections of the custom code dialog? In Th...

12 månader ago | 1

Answered
SIL testing with user defined function.
You need to add the function prototype for _mm_loadu_pd to your user defined C file ( or a #include to a header file that define...

12 månader ago | 0

Answered
Simulink Switch Block Input Calculation
Embedded coder attempts to pull upstream calculations inside the if-then C++ code generated for a switch block. However, to ens...

ungefär ett år ago | 0

| accepted

Answered
Define global variables for MATLAB function usage within Simulink for Embedded Code
Did you follow the steps as described here? https://www.mathworks.com/help/simulink/ug/using-global-data-with-the-matlab-functi...

ungefär ett år ago | 0

Answered
How can I avoid function duplication in code generation?
You need to move your code from the Start() TLC function to the BlockTypeSetup() TLC function. The BlockTypeSetup() TLC functio...

ungefär ett år ago | 0

Answered
I have generated C code using embedded coder but few files are missing in the folder e.g. math.h
Use the "Package code and artifacts" configuration open to run the PackNGo tool that will identify all needed source and header ...

ungefär ett år ago | 0

Answered
How to open matlab project (.proj) in the background using -batch command from bash?
use openProject() function to do this. https://www.mathworks.com/help/matlab/ref/openproject.html

ungefär ett år ago | 0

Answered
simulink unable to pace at specified rate
Accelerator and rapid accelerator modes can be used to increase the simulation speed, but these options are not likely to get yo...

ungefär ett år ago | 1

Load more