已回答
Simulink: programmatically find all blocks of a certain kind
find_system() is designed for this. https://www.mathworks.com/help/simulink/slref/find_system.html

2 years 前 | 0

已回答
question about blocks name
To get the library block path, you can hover over the block in the Library Browser. Alternatively, you can open the library mode...

2 years 前 | 0

已回答
eProsima Shapes Demo can't receive messages from Simulink generated Data Writer
In R2021b on a Windows computer, the generated .exe from the attached mdoel works with RTI ShapesDemo on my computer. This mode...

2 years 前 | 1

已回答
TLC and MEXW64 files for Code Generation
Use the following legacy_code option to generate TLC code for an s-function. legacy_code('sfcn_tlc_generate', specs) Use L...

2 years 前 | 0

| 已接受

已回答
How to implement my Matlab generated C code in a secondary IDE?
https://www.mathworks.com/help/coder/ref/packngo.html

2 years 前 | 0

| 已接受

已回答
eProsima Shapes Demo can't receive messages from Simulink generated Data Writer
This looks like a problem with the eProsima ShapesDemo. You should contact eProsima.

2 years 前 | 0

已回答
TLC and MEXW64 files for Code Generation
Your understanding is correct for TLC files and mexw64 files. Assuming you already have Simulink and Simulink Coder licenses,...

2 years 前 | 0

已回答
Simulink coder can not initialized internal array
Your legacy code created s-function is not correct. The input argument u1 is a scalar U16. When setting up the legacy code too...

2 years 前 | 0

已回答
Verbose build generated .log files can't be disabled?
As you stated, the "verbose build" option does not create log files... it simply displays extra information about the code gener...

2 years 前 | 0

| 已接受

已回答
How to package generate code and header files on the basis of subsystems?
It is not possible to have the code for SubA and SubB be placed in 2 different subfolders. However it is possible to have the c...

2 years 前 | 0

已回答
Simulink Coder with a locked S-function
It depends on how the s-function was built. If the s-function was built as an "inlined" s-function, then a TLC file is required...

2 years 前 | 0

已回答
How do I create a binary for Linux with MATLAB Coder?
If you are running MATLAB from a linux machine, MATLAB Coder will compile and link the code into a LInux exe that you can run on...

2 years 前 | 2

| 已接受

已回答
How do I make a copy of a C28x (TI C2000) block with a corrected .tlc file?
In general MathWorks does not provide C/C++ source code for S-Functions There is no way to deconstruct the .mexw64 file. The ....

2 years 前 | 0

已回答
How to generate RTW file programmatically?
slbuild() can be used to generate code for a subsystem: % open example model rtwdemo_rtwintro %generate code for subsystem ...

2 years 前 | 0

已回答
State transition table outputs printing in diagnostic viewer
Most likely this is due to a missing semicolon to terminate a MATLAB statement in your statechart.

3 years 前 | 0

已回答
Why can't I create a test harness on a subsystem in a reference subsystem?
Try opening the reference subsystem model directly. You should be able to then create a test harness on a subsystem inside that ...

3 years 前 | 0

已回答
Programatically set Inport/Outport Blocks as "Output as nonvirtual bus"
use find_mdlrefs() to get a list of all referenced models For each model, use find_system() to get a list of inports and outpor...

3 years 前 | 0

已回答
how to add static link library to S function
When compiling and linking your s-function using the mex command, you can provide optional argument -L to link to a library. Yo...

3 years 前 | 1

已回答
Combine subsystems in Simulink with continuous and discrete states
You can not set a different solver for each subsystem. The solver is defined at the model level and applies to all subsystems i...

3 years 前 | 0

| 已接受

已回答
How can I export my app that was created in app designer which uses simulink model to an executable format?
You need to use Simulink Compiler as described here: https://www.mathworks.com/help/slcompiler/ug/deploy-a-simulation-with-simu...

3 years 前 | 0

已回答
Having trouble compiling a C code.
You need to provide both the mex C source code and your source code to the mex function: mex disloc_mex.c disloc.c Thanks....

3 years 前 | 0

已回答
How to use IDL sequences in Simulink DDS Blockset
Unfortunately, the DDS Blockset does not fully support sequences. Simulink will treat a sequence as a fixed length vector. The ...

3 years 前 | 0

已回答
What is the best way to distribute a custom simulink library using C++ S-Function blocks to multiple users? Preferably using some form of CI/CD pipeline
Write a MATLAB script that Uses the mex() function to compile and link source code for each S-function into a mex function ( y...

3 years 前 | 0

| 已接受

已回答
Using mcc with simulink.
You should be using Simulink Compiler to compile and deploy a Simulink model. Simulink Compiler

3 years 前 | 0

已回答
Error Updating Model Reference SIM Targets (an error occured during the call to make)
The error is coming from the mingw compiler that Simulink is using to compile/link the code generated from model "machine". Do ...

3 years 前 | 0

| 已接受

已回答
How to use C Caller block with C code having multiple functions ?
The C Caller block can only call one function. You can either use a seperate C-Caller block for each function, or write a wrapp...

3 years 前 | 0

| 已接受

已回答
Simulink intermittently hangs after return from mdlStart() in call to external C++ sfunction
Comment out or remove your S-Function block to determine if your s-function causes the hang. If it does, then you could try to ...

3 years 前 | 0

已回答
"Generate Code Only" throws error for MATLAB block in Simulink
Code is always generated from MATLAB Function blocks and compiled into a mex function, even if you select the "Generate code onl...

3 years 前 | 0

已回答
How to dynamically change the Mask dialog box in Simulink
I am assuming the code you provided is from the "Initialization" tab? You could try putting the same code in the "callback" for...

3 years 前 | 1

| 已接受

已回答
Supress Simulink Prj open dialog
Delete the mcArch_01_prj.prj file and the hidden folder .SimulinkProject

3 years 前 | 1

| 已接受

加载更多