Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

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

6 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

| accettato

Risposto
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 mesi fa | 0

| accettato

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

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

6 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 0

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

8 mesi fa | 0

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

8 mesi fa | 0

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

8 mesi fa | 0

| accettato

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 1

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

circa un anno fa | 0

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

circa un anno fa | 0

| accettato

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

circa un anno fa | 0

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

circa un anno fa | 0

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

circa un anno fa | 0

Risposto
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

circa un anno fa | 0

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

circa un anno fa | 1

Carica altro