Answered
Is it possible to program nested functions in a Simulink user-defined function?
Nested functions are not supported for code-generation, so you can't use them inside a MATLAB Function block, but I think this s...

14 years ago | 1

| accepted

Answered
If I don't want simulink to generate the file "rtwtypes.h", how can I do?
I don't think you can avoid rtwtypes.h from getting generated because it contains typedefs for platform-independent types. You m...

14 years ago | 0

| accepted

Answered
Data exchange between a C-mex S-function and a function-call subsystem
Are the S-function outputs that act as the function-call subsystem inputs computed *after* the function-call is triggered? As ex...

14 years ago | 0

Answered
Customs block API creation using TFL
TFL is used to replace operators like +, -, etc. or basic math functions like sin, cos, etc. It appears that you need to build a...

14 years ago | 0

Answered
how to display the results from simulink in a table
You could set up a model execution event listener that is triggered every time a block's output is computed. This event listener...

14 years ago | 0

Answered
Setting Simulink model inports using sim() commands
You need to use the Data Import/Export Pane of the model's Configuration Parameters window to get data using the Inport block. S...

14 years ago | 2

| accepted

Answered
problem with getting data for GUI interface from Simulink
See <http://www.mathworks.com/help/toolbox/simulink/ug/f13-92122.html Accessing Block Data During Simulation>.

14 years ago | 0

Answered
How to saturate a variable according to my range in RTW embedded coder
What about using the <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/saturation.html Saturation> block at ...

14 years ago | 0

| accepted

Answered
'Not a valid win32 application' error - using mex files with Matlab 2011b and Visual C++ 2010 Express
Is there a reason that you don't compile directly using the "mex" command in MATLAB? The most likely issue could be that the MEX...

14 years ago | 0

| accepted

Answered
error while executing computer vision toolbox.
Errors like "The specified procedure could not be found." usually indicate that the MEX-file (which is essentially a DLL) depend...

14 years ago | 0

Answered
Error - opening simulink .mdl results in a call to and the running of an alternate model...
That's very strange - could you try opening your (desired) model in a text editor (like the MATLAB Editor) and do a string searc...

14 years ago | 1

| accepted

Answered
passing structure from matlab workspace to embedded matlab function block
You will need to define a Simulink.Bus signal to import the structure into Simulink as a nonvirtual bus - see <http://www.mathwo...

14 years ago | 2

Answered
Comm USRP installation with R2012a / Linux
Renaming the folder may have temporarily gotten past the error for you, but the primary issue here is that you have 64-bit MATLA...

14 years ago | 0

Answered
How to set the datatype of outport of an S function to Fixed point datatype force fully ?
# Include fixedpoint.h and fixedpoint.c as described <http://www.mathworks.com/help/releases/R2011b/toolbox/fixpoint/ug/f8840.ht...

14 years ago | 3

| accepted

Answered
Matlab Compiler or Simulink Coder which would I need?
MATLAB Compiler and MATLAB Coder do not support Simulink models for code generation at all. Simulink Coder is the right product ...

14 years ago | 2

| accepted

Answered
Problem with Real time Workshop Embedded Coder and Compiler (Mex -setup) in Build Subsystem
When you ran "mex -setup", did MATLAB pick up your compiler automatically, or did you enter the path manually? It seems like you...

14 years ago | 0

Answered
How to set block Signal From Workspace
You need to create matrices such that the first column is the time vector associated with each sample, and the second column if ...

14 years ago | 1

Answered
Cannot install real time window target
Are you running the command from C:\Windows\system32? If yes, you need to switch to a different directory. See <http://www.mathw...

14 years ago | 0

| accepted

Answered
Invalid MEX-file
Was the S-Function generated on your machine, or elsewhere? The error about "The specified procedure could not be found." usuall...

14 years ago | 0

| accepted

Answered
error: Code generation failed Failed to create file
It appears that a Stateflow chart in your model needs to generate code for execution, but MATLAB/Simulink is unable to write to ...

14 years ago | 0

Answered
Invert Multiport switch - Simulink
Do you mean that you want to control the signal flow, so that it flows through to a select output of the switch, but not to the ...

14 years ago | 0

Answered
Trouble about importing data using 'From File' block in simulink
As you mentioned, your time stamps are not exactly at 10ms all the time. What if you fudge the time-stamps of the input signal s...

14 years ago | 3

| accepted

Answered
Multiple copies of the same embedded subfunction in simulink
It seems writing line_buffer as a class with 'buffer' and 'ctr' as its members might be the right way to solve this problem. How...

14 years ago | 0

Answered
One-Step a Simulink Simulation from the MATLAB command line
Yes, you should be able to use the <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/model_cmd.html _model_>...

14 years ago | 1

Answered
Trouble at linking stage with Matlab 2011 and Microsoft Visual C++ 2010
All MEX-functions need to have an entrypoint function call mexFunction - it looks like you have not defined it in test.c. Look a...

14 years ago | 0

Answered
simulink- m level code
Not sure what you're looking for, but there's no automated way to do this, you'll need to do it manually. However, you can also ...

14 years ago | 0

Answered
fcn blocks, model referencing and workspace variables
I think you might need to declare c1 as a Simulink.Parameter object and define it in the base workspace. See <http://www.mathwor...

14 years ago | 0

Answered
How to add a mask parameter to a simulink block
You need to do a set_param on the block to set MaskVariables, MaskPrompts, MaskValues, etc.

14 years ago | 1

| accepted

Answered
Open the Configuration Parameters window by using the command window
>> openDialog(getActiveConfigSet(gcs))

14 years ago | 0

| accepted

Answered
Modify the MaskDIsplay of a block by using c sfunction
Do you mean that you need to perform that command from the C-code? Is it because the MaskDisplay value is computed dynamically b...

14 years ago | 1

| accepted

Load more