
Mark McBroom
Followers: 0 Following: 0
Statistics
RANK
167
of 300,321
REPUTATION
694
CONTRIBUTIONS
0 Questions
444 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
65
RANK
of 20,913
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
“How can I write two M‑scripts: one to disable signal logging across the whole Simulink model (masked subsystems), and another to enable logging only for selected signals
Your first 2 find_system() calls don't look under masks. Try adding 'LookUnderMasks','all'
21 days ago | 1
| accepted
Unnecessary copies in code when using nested non-virtual buses with atomic subsystems
Each release of Embedded Coder incluces improved optimization, and removing data copies is one of the most common improvements. ...
25 days ago | 0
Is it possible to generate C code with Embedded Coder (ERT TLC) following the Google C style guide?
There is not built-in support for this standard. Embedded Coder has many custtomization options, so I would expect many of the ...
25 days ago | 0
Simulink Functionality in Cloud Headless-Environments
Do you have a license for Simulink, MATLAB Coder and Simulink coder for your cloud environment? https://www.mathworks.com/matla...
1 month ago | 0
Function caller block generating Function_name.h file in code generation
If the .c and .h files already exist for the function you want to call, you should use the C Caller block. https://www.mathwork...
1 month ago | 0
How can I tell when a Stateflow state is active other than looking at it or using the Data Inspector?
Stateflow can be configured to output the current state as an output port from the chart. You can then add assertion blocks on ...
2 months ago | 1
| accepted
Create Custom Object Class for SLDD
https://www.mathworks.com/help/ecoder/ug/define-storage-class-memory-section-and-function-template-settings-for-a-software-archi...
3 months ago | 0
| accepted
Simulink Embedded Coder: need to define code generation storage class for a block that is part of a library
You could try putting a mask on the library block and adding a mask argument for the State. Then, create a Simuilnk.Signal to r...
5 months ago | 0
How to get the same code generation for a whole Simulink model and referenced subsubsyem?
Have you tried making the sub-system atomic and then on the code generation tab, setting the desired interface for the function?...
6 months ago | 0
| accepted
Cast to double in embedded coder
The default data type for literal constants ( i.e. 1.25) is double. This is causing operations with these contants to be cast ...
6 months ago | 0
VxWorks libmat and libmx source code
MathWorks does not provide the source files for libmat and libmx. One workaround would be to save your data in a text file rath...
6 months ago | 0
Externally (C++) defined bus type issue used in a simulink function
Is the bus configured to use the externally defined headerfile using the DataScope and Headerfile properties of the Simuilnk.Bus...
7 months ago | 0
Simulink coder packed structs
See the "Alignment" property for Simulink.Bus elements defined here: https://www.mathworks.com/help/simulink/slref/simulink.bus....
7 months ago | 0
How to configure the encoder to use C-code standard data type keywords?
You can use standard C99 data types in the generated code. See this link: https://www.mathworks.com/help/ecoder/ug/control-dat...
8 months ago | 0
What are the distribution rights for the header files used by autocoded Simulink models?
There are no restrictions on sharing the generic header files.
8 months ago | 0
| accepted
speedgoat remote DDS communication
I am not sure what you mean by a "DDS router". Other DDS participants can communicate with the speedgoat via an Ethernet connec...
8 months ago | 0
Code generation in jenkins pipeline
Also ensure that MATLAB Coder/Simulink Coder/Embedded Coder is installed on the jenkins machine.
11 months ago | 0
Inlined tunable parameter values because of using different data type then double-precision
You can either set the data to the proper data type in the data dictionary, or you can cast the value in the block dialog. For ...
11 months ago | 0
Why does code generated by Embedded Coder change when subsystem does not change?
The code from a subsystem model can change if the parent model changes, even if no changes were made to the subsystem. During t...
11 months ago | 0
Matlab's Simulink UDP send to unity
Ive not worked with unity, but have you tried just sending and receiving a float? Simulink can do this no problem. This would...
11 months ago | 0
Realtime streaming in Simulink?
Constant blocks are only updated with new workspace vaues if the Simulink model is: paused, Model Update, and then resumed. A b...
11 months ago | 0
| accepted
Embedded Coder shall use an externally implemented nested struct for read and write access (in place) in it's generated code which is written in C.
A couple of ideas. It sounds like the functional call sub-system is set to be reusable. Try to make it non-reusable. Follow t...
12 months ago | 0
About legacy code: can you go from labview to simulink via dlls?
Try generating an FMU from your Simulink model and then using that FMU in Labview https://www.mathworks.com/help/slcompiler/gs/...
12 months ago | 0
Stateflow: reset simulink-based state on entry
Did you try putting a reset subsystem in the Simulink subsystem to reset the state? https://www.mathworks.com/help/simulink/ug/...
1 year ago | 0
Header files not generated
You are correct. Those files are not generated but rather are shipped with Simulink Coder/Embedded Coder.
1 year ago | 0
Is it possible to use Simulink's DDS BlockSet to communicate between two Simulink models on two computers?
You can use Simulink to exchange DDS messages from 2 or more different Simulink models using External mode. These Simuilnk mode...
1 year ago | 0
| accepted
How to call a DLL sub-function in Simulink EML suitable for use in accelerated models & generated code
coder.ceval() is the approach to use for this. https://www.mathworks.com/help/simulink/ug/incorporate-c-code-using-a-matlab-fun...
1 year ago | 0
Solver library while converting from Simulink to C
The normal approach is to first select a solver that provides the best results when testing the model in simulation mode. You s...
1 year ago | 0
Configuring Embedded Coder to Generate Non-Static Initialize Method in C++ Code
It sounds like you are not using Embedded Coder ( ert.tlc ). Embedded Coder should generate the public methods Initialize(), st...
1 year ago | 0
SIMULINK testing a model that has bus input and output ports
If you already have a Simulink.Bus defined, another approach is to place a constant block in the Simulink model, set its value t...
1 year ago | 0