Community Profile

photo

Mark McBroom

MathWorks

Last seen: 4 dagen ago Active since 2012

Application Engineer at MathWorks

Statistics

All
  • MATLAB Central Treasure Hunt Finisher
  • Commenter
  • Promoter
  • CUP Challenge Master
  • 6 Month Streak
  • Knowledgeable Level 3
  • Revival Level 3
  • First Answer
  • Solver

View badges

Content Feed

View by

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

4 dagen ago | 0

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

4 dagen ago | 0

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

10 dagen ago | 0

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

16 dagen ago | 0

Answered
"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...

16 dagen ago | 0

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

ongeveer 2 maanden ago | 0

| accepted

Answered
Supress Simulink Prj open dialog
Delete the mcArch_01_prj.prj file and the hidden folder .SimulinkProject

3 maanden ago | 1

| accepted

Answered
Reset timer to zero after leaving a state with a transition action
There is no way to reset the simulation time. The approach you are using, which is to get simulation time when the state transi...

3 maanden ago | 0

| accepted

Answered
How do you test a neural network
https://www.mathworks.com/help/stats/assess-regression-neural-network-performance.html

4 maanden ago | 0

Answered
"The specified key is not present in this container" error when attempting to build a Simulink model with C Caller function blocks
The configuration should only refer to the .lib file. This is the only file needed for linking. Use double quotes around the ....

5 maanden ago | 0

Answered
What approach to programming an ARM Cortex M7 on simulink?
Either can be used but I would recommend the C Caller block. For either approach, you will need to write the device driver in C...

5 maanden ago | 0

Answered
Hardware specific Functions + Code Replacement + Embedded Coder
Rather than use the Code Replacement Library, a simpler approach would be to have two versions of function switch_Light(). One ...

5 maanden ago | 0

| accepted

Answered
How to send data over tcp to remote server from a simulink model
The easiest way to do this is to use the UDP blocks in either the Instrument Control Toolbox or the Embedded Coder Toolbox. Oth...

7 maanden ago | 0

| accepted

Answered
Enable Coverage metrics on a Simulink test suite from Matlab Script
https://www.mathworks.com/help/sltest/ref/sltest.testmanager.coveragesettings-class.html

7 maanden ago | 0

Answered
How to change model properties of a .slx simulink model using the MATLAB script
Model configuration settings can be controlled from MATLAB code using the get_param() and set_param() functions. Help will tell...

7 maanden ago | 0

| accepted

Answered
From Simulink to C-Code and back to Simulink
"SIL" mode addresses this use case and eliminates all of the uncessary steps you are trying to follow. SIL mode allows you to r...

7 maanden ago | 0

| accepted

Answered
Executing callbacks of custom simulink blocks in a subsystem reference
I believe you need to put a mask on the subsystem reference and use this mask to pass values for each instance down into your cu...

7 maanden ago | 0

Answered
PWork loses data in S-function
st1 is an autmomatic variable, so its memory location can get reused after leaving mdlStart(). YOu need to allocation memory fo...

7 maanden ago | 0

| accepted

Answered
How to measure Round Trip Time in Simulink using S-Functions and Time Stamps?
Trhee suggestions Don't bother writing time to file in s-function. Use simulink logging capabilities to log the outputs from t...

7 maanden ago | 0

Answered
High resolution TIFF images from Simulink Scope
Open the scope and from the File menu, select "Print to Figure". This will create a MATLAB figure of your scope. Then, from th...

8 maanden ago | 0

Answered
How can I change a parameter in a Simulink block using code setVariable?
Since the variables you are trying to change are in the Model Workspace, you need to add an optional argument specifying this. ...

8 maanden ago | 1

| accepted

Answered
"S-Function does not exist" but is clearly in the Matlab path!
Do you have a file named sfun_name.mexw64? Simulink needs the s-function to be compiled into a mexw64( which is a specialzed DL...

8 maanden ago | 0

| accepted

Answered
Find out which addons are used by Simulink project
You used both the term "toolbox" and "addon" in your description. For Toolboxes, which are licensed products, type the followin...

8 maanden ago | 0

Answered
FMU Import Script for Simulink
If you set the FMUName property then you should not get prompted. YOu can do this either by adding additional arguments to the ...

8 maanden ago | 0

| accepted

Answered
How to connect bus signal with different data size using multiport switch?
I made a number of changes to your model, most importably was to remove mux blocks. Mux blocks should not be used. Use Vector/...

9 maanden ago | 0

| accepted

Answered
How to connect bus signal with different data size using multiport switch?
On the Multi-port switch block, on the Signal Attirbutes tab, check the box "Allow different data input sizes".

9 maanden ago | 0

Answered
How to Suppress Mixed Expressions for Pooled Parameter in generated Autocode?
Change the "Shared code placement" option to "Shared location" and then the option for "Generate shared constants" will no longe...

9 maanden ago | 0

Answered
Problem synchronization between a Simulink publisher and subscriber
Simulink does not simulate in real-time, so there will always be variation in the execution speeds of Simulink models. You can ...

9 maanden ago | 0

Answered
sendmail function in simulink
You should be able to do this inside a MATLAB Function block that is placed into the Simulink model. You will have to designate...

9 maanden ago | 0

Answered
Time dependent variable during simulation
The sim() command doesn't return until the simulation is complete. An easy way to accomplish what you want to do is to use the ...

9 maanden ago | 0

Load more