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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 2

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

| accettato

Risposto
'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...

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 2

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 3

| accettato

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

quasi 14 anni fa | 2

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 3

| accettato

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

quasi 14 anni fa | 0

Risposto
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_>...

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 1

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 1

| accettato

Carica altro