Answered
Simulink Limit Integral Saturation Limit Dynamic Input
As you have found out, the Limited Integrator block from the Simulink Library only takes the saturation limits as a parameter, a...

14 years ago | 2

| accepted

Answered
How to solve higher order polynomial roots in Simulink faster in Rapid Accelerator Mode?
Sorry, the MATLAB Function related blocks were recently renamed (see http://www.mathworks.com/matlabcentral/answers/36656-what-k...

14 years ago | 1

Answered
Looking for the RTW support
There are <http://www.mathworks.com/products/simulink-coder/demos.html several resources> linked off of the Simulink Coder (form...

14 years ago | 0

Answered
Matlab Coder and the uint64 size_t
If you have access to the Fixed-Point Toolbox, it looks like you might be able to get around the limitation the declaring the ou...

14 years ago | 1

| accepted

Answered
Weird issue from a simulink model (a simple sfunction block in series to a switch) Could it be a bug on Matlab 7.8 (2009a) ?
What you are seeing is expected behavior. As you know, all Simulink blocks (like S-functions) have several methods, which are ru...

14 years ago | 1

| accepted

Answered
How do you programmatically invoke model callbacks?
Kind of a hack, but this should work: >> eval(get_param(bdroot, 'PreLoadFcn'))

14 years ago | 1

| accepted

Answered
C2000 Embeded IDE Link Issue on 64 bit Windows
I think you could try installing 32-bit MATLAB on your 64-bit machine and see if that allows you to connect to CCS. Although, ac...

14 years ago | 0

Answered
Real Time Simulation and HIL
AFAIK, the only HIL solution directly available from MathWorks is xPC Target. Please refer to the <http://www.mathworks.com/help...

14 years ago | 0

Answered
How can we share a data between simulink and stateflow where the data is not input to stateflow chart?
You mean besides as inputs OR parameters? The Data Store Memory block is <http://www.mathworks.com/help/releases/R2011b/toolbox/...

14 years ago | 0

| accepted

Answered
setting the size of output port for Level-2 Matlab functions
I'm not sure if I understand your question correctly. Did you mean that you'd like to have a variable-sized output, or did you w...

14 years ago | 0

Answered
What do you mean by "Inlining s-function"?
Typically C S-functions are separate MEX-files (DLLs) - if you do not inline them (by providing a TLC-file for it), then the gen...

14 years ago | 5

| accepted

Answered
. What is the meaning of "Zero based indexing/one based indexing" in multiport switch?
The phrases are pretty standard AFAIK. Zero based indexing means the first port is referred to by index=0, One based indexing me...

14 years ago | 1

| accepted

Answered
Using Workspace data in Matlab function block - SIMULINK
If the maps are very large, you can use them as global data inside MATLAB Function blocks <http://www.mathworks.com/help/release...

14 years ago | 4

Answered
. What is System Target File? How does it affect the code generation?
<http://www.mathworks.com/help/releases/R2011b/toolbox/rtw/ug/bse3c7m-1.html This page> has information about the role of System...

14 years ago | 0

| accepted

Answered
How many ways can we create a user-defined-data type
I know of three ways: # Alias types using <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/simulink.alia...

14 years ago | 2

| accepted

Answered
Data-type 'Bool' is unsupported for HDL code generation
Seems like this might be a Xilinx System Generator limitation. It might be best if you try contacting Xilinx Support, because no...

14 years ago | 0

Answered
Embedded Matlab function, simulink loop
How about if you insert a Unit Delay block in the feedback loop?

14 years ago | 0

Answered
Embedded MATLAB Function
It looks like Simulink can't find "nmake.exe" on the system PATH, which is the make utility that ships with Visual Studio. Have ...

14 years ago | 0

Answered
Using LibBlockParameter() into a conditional directive %if
I'm wondering if the problem is that you need to do string comparison instead of using the == operator. Since I can't think of a...

14 years ago | 0

| accepted

Answered
Building model error (Invalid run-time parameter)
There is a <http://www.mathworks.com/support/bugreports/259277 Bug Report> with the same issue that says the bug was fixed in R1...

14 years ago | 1

Answered
COM generic components and mclInitializeApplication of MatlabRuntime
I'm assuming you use MATLAB Builder NE to generate the COM component? I haven't done this myself, but looking at the programming...

14 years ago | 0

| accepted

Answered
Any way to figure out what your blocks are connected to in a model?
Get the block's port handles using: ph = get_param(gcb, 'PortHandles') Examine ph.Inport and ph.Outport to get the handl...

14 years ago | 5

| accepted

Answered
S-function for reading the Lego NXT compass sensor
You just need to make sure to have all the right #includes and use the right compiler/linker flags. Pretty much what you might n...

14 years ago | 0

| accepted

Answered
replace_block and load_system
Yes, you should be able to replace blocks using <http://www.mathworks.com/help/toolbox/simulink/slref/replace_block.html replace...

14 years ago | 1

| accepted

Answered
How to find the Process ID (PID) in matlab
There is an undocumented (but relatively well-known) function: >> feature getpid

14 years ago | 5

Answered
All Toolboxes failed to run after new installation
I would recommend contacting MathWorks Installation Support for free support regarding setup issues.

14 years ago | 0

Answered
Is possible to collect a string in the mask ? (Embedded Coder)
Yes, I think this should be possible if you register the parameter as nontunable. You will need to implement the mdlRTW method i...

14 years ago | 3

| accepted

Answered
Running referenced model in parent model
You should probably use an <http://www.mathworks.com/help/toolbox/simulink/ug/f4-84107.html Enabled Subsystem> and create a cont...

14 years ago | 0

Answered
Error evaluating 'InitFcn' callback of create Ethernet block
I don't know anything about using the xPC Ethernet blocks, but the error message seems to say that you need to add a Network Buf...

14 years ago | 1

Answered
Set Simulink model simulation stop time from m file
You can set_param for the model also: set_param('modelname', 'StopTime', '3000')

14 years ago | 16

| accepted

Load more