Answered
Stepping through sorted order of Simulink model
Yes, you can do that with the <http://www.mathworks.com/help/toolbox/simulink/ug/f5-6104.html Simulink Debugger>.

14 years ago | 3

| accepted

Answered
Modify an "Embedded MATLAB Function block" from command window (Matlab command)
See <http://www.mathworks.com/support/solutions/en/data/1-1XIY8J/index.html How do I specify the MATLAB code for the function in...

14 years ago | 3

| accepted

Answered
S-Function Block- Create Mask Error
Which S-function did you select for the block? There needs to be a C-MEX or MATLAB-file S-function associated with it. That S-fu...

14 years ago | 0

Answered
matlab2008b stateflow generation code
You need to check the "Generate code only" box on the Configuration Parameters>Real-Time Workshop pane of the model. Try Ctrl+E ...

14 years ago | 0

Answered
matlab function initiaizing the parameter
You can create kp as a persistent variable. For example: function myTest() persistent kp; if isempty(kp) ...

14 years ago | 2

Answered
MCR executable different than original code
It seems like the deployed version of the code is picking up the <http://www.mathworks.com/help/toolbox/stats/pdf.html generic v...

14 years ago | 0

Answered
how to convert simulink model to a .dll file
There is some documentation <http://zone.ni.com/devzone/cda/tut/p/id/3447 here> about generating a DLL from a Simulink model for...

14 years ago | 0

Answered
How to connect a simpowersystem component with simelectronics component
I think this previous answer should help: http://www.mathworks.com/matlabcentral/answers/23565-how-to-connect-simscape-block-wit...

14 years ago | 0

| accepted

Answered
Matlab Coder output into CCS (version 3.1)
There should have been a .mk file generated with all the code - it should show you the exact compilation commands needed. Simpli...

14 years ago | 0

Answered
Possible to distribute shared .dll without requiring end users to have C compiler?
A similar question was asked here previously: http://www.mathworks.com/matlabcentral/answers/32007-using-mcc-to-compile-a-code-t...

14 years ago | 0

| accepted

Answered
S-function executes only if clock is present in Simulink file
Turn on 'Format>Sample Time Display>Colors' on your model without the Clock block. What colors do you see? This may provide us s...

14 years ago | 0

Answered
Function without body in generated code like 'modile_name'TID0(void)
This seems like it could be a bug, so I highly recommend that you report this to MathWorks Tech Support. My suspicion is that...

14 years ago | 0

Answered
Simulink block name generation
I think the forward slash is used as an <http://en.cppreference.com/w/cpp/language/escape escape sequence> to denote that the sl...

14 years ago | 0

| accepted

Answered
controlling manual switch through m-file
It looks like this should work set_param('path/to/block', 'sw', '0') set_param('path/to/block', 'sw', '1') I found th...

14 years ago | 1

| accepted

Answered
Nonlinear equations within Simulink Coder
I'm not sure, but I'm guessing that the blocks that introduce nonlinear dynamics may not even be supported for code-generation.

14 years ago | 0

Answered
Problem regarding RTW code generation feature of simulink
Do you mean the TCP/IP blocks from the Instrument Control Toolbox? I'm not even sure that those are supported for code-generatio...

14 years ago | 0

| accepted

Answered
fixdt() and RTW-EC
Does inserting a Data Type Conversion block in front of the output port help? You need to configure the Data Type Conversion blo...

14 years ago | 1

Answered
Where is inport value coming from?
See <http://www.mathworks.com/help/toolbox/simulink/ug/bsuwmmp.html Importing Data to Root-Level Input Ports>. In particular, yo...

14 years ago | 0

| accepted

Answered
Error runing ffmpeg in Matlab function in linux
What do you get when you just run: >> [status,result] = unix('/usr/bin/ffmpeg -i "/home/ly/Documents/movie/AVSS_AB_Easy_Div...

14 years ago | 0

Answered
HDL Cosimulation with simulink and Modelsim
It <http://www.mathworks.com/support/solutions/en/data/1-8SNFKE/index.html looks like> the supported versions of ModelSim with R...

14 years ago | 0

Answered
Differential equation in embedded block in simulink ?
I don't think the Embedded MATLAB Function block is a good choice to solver differential equations. I would recommend using S-Fu...

14 years ago | 2

| accepted

Answered
Using mcc to compile a code that uses a .dll library
As the error message suggests, you cannot use a header file (.h) with loadlibrary in deployment mode. The link in the error: htt...

14 years ago | 1

| accepted

Answered
simulation time in Simulink
The simulation time is specified in seconds, so you would need to use 86400 to set a day's duration. (Note however that this doe...

14 years ago | 1

| accepted

Answered
How to reset parameters in a simuink block when a certain condition is met in the simulink loop
It is <http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-another-block/ not po...

14 years ago | 1

| accepted

Answered
change the position of a part of the input ports of a simulink block.
AFAIK, it is currently not possible to change the positions of input/output ports on a Simulink block. The best you can do it Ro...

14 years ago | 0

| accepted

Answered
Problem with libeng.dylib and libmx.dylib for maci64
I'm not a Mac user, but from my experience on Windows and Linux, it seems like the gfortran compiler may be attempting to compil...

14 years ago | 0

Answered
start simulation of simulink with mfile~~
Is Panorama a string variable containing the name of the model? Also, not sure where you got this command from: set_param(Panora...

14 years ago | 0

Answered
gain
Do you plan to use the Clock block to determine when t>5secs? It is typically not possible to change a block parameter based on ...

14 years ago | 0

| accepted

Answered
How to get system date and time into simulink in EXTERNAL MODE?
CLOCK is not one of the functions supported for code generation, so you cannot use it in external mode. It might be best to use ...

14 years ago | 0

Answered
Dynamic icon drawing in Simulink masked subsystem is not working...
It looks like some error is occurring in one or more of the drawing commands. You could try running the commands like the PLOT c...

14 years ago | 0

Load more