답변 있음
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 ...

4개월 전 | 1

| 수락됨

답변 있음
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 ...

4개월 전 | 0

답변 있음
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...

4개월 전 | 0

답변 있음
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.

4개월 전 | 0

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

5개월 전 | 0

답변 있음
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...

5개월 전 | 0

답변 있음
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#

5개월 전 | 0

| 수락됨

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

5개월 전 | 0

| 수락됨

답변 있음
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 ...

5개월 전 | 0

답변 있음
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?

5개월 전 | 0

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

5개월 전 | 0

답변 있음
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...

5개월 전 | 0

답변 있음
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...

5개월 전 | 0

답변 있음
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...

5개월 전 | 1

| 수락됨

답변 있음
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개월 전 | 0

답변 있음
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개월 전 | 0

답변 있음
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개월 전 | 0

답변 있음
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개월 전 | 0

| 수락됨

답변 있음
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개월 전 | 0

답변 있음
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...

11개월 전 | 1

| 수락됨

답변 있음
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...

11개월 전 | 1

답변 있음
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...

11개월 전 | 0

답변 있음
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...

11개월 전 | 0

| 수락됨

답변 있음
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...

거의 1년 전 | 0

답변 있음
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...

대략 1년 전 | 0

답변 있음
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 ...

대략 1년 전 | 0

답변 있음
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

대략 1년 전 | 0

답변 있음
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...

대략 1년 전 | 1

답변 있음
Run Simulink R2014b model in R2022b version
Theoretically you can open a model from an older release and it should open and run. The upgrade advisor https://www.mathworks....

대략 1년 전 | 0

답변 있음
Share a state variable between 2 masked S-Function
It is not possible to have an S-Function update the value of data dictionary value. See this link for approaches you can take...

대략 1년 전 | 0

| 수락됨

더 보기