Respondida
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 ...

3 meses hace | 0

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

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

5 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

| aceptada

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

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

6 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 1

| aceptada

Respondida
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...

6 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

Respondida
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 meses hace | 0

| aceptada

Respondida
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...

11 meses hace | 0

Respondida
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 meses hace | 1

| aceptada

Respondida
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 meses hace | 1

Respondida
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 meses hace | 0

Respondida
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...

12 meses hace | 0

| aceptada

Respondida
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...

alrededor de 1 año hace | 0

Respondida
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...

alrededor de 1 año hace | 0

Respondida
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 ...

alrededor de 1 año hace | 0

Respondida
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

alrededor de 1 año hace | 0

Respondida
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...

alrededor de 1 año hace | 1

Cargar más