Beantwortet
Subsystem, library, or model referencing, when wanting unique block names?
It seems like you have the ideal use-case for creating a masked subsystem block (with the parameters that can be changed registe...

fast 14 Jahre vor | 2

| akzeptiert

Beantwortet
Simulink SFunction Interface Error: due to insufficient storage
Are you using the (Embedded) MATLAB Function block to bring your MATLAB code into Simulink? The MATLAB Function block generates ...

fast 14 Jahre vor | 0

Beantwortet
How to call Matlab functions from C S functions
You can use <http://www.mathworks.com/help/techdoc/apiref/mexcallmatlab.html mexCallMATLAB>, but will need to create/destroy mxA...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
detectin that codegen has finished
AFAIK, the codegen command is not asynchronous. Perhaps it takes a few seconds for the file system to register the new file? You...

fast 14 Jahre vor | 0

Beantwortet
ssSetDWorkUsageType warning in c-mex S-function
I don't believe the warnings should affect the results of the simulation (if that were the case, you would be seeing errors, not...

fast 14 Jahre vor | 0

| akzeptiert

Beantwortet
unresolved external symbol mxDestroyArray referenced in function mexFunction
I'm assuming you have two versions of MATLAB on your 64-bit machine - one 32-bit, the other 64-bit. From what I understand, you ...

fast 14 Jahre vor | 0

Beantwortet
I can't set a parameters for embedded function (now matlab function) by line command
See this previously answered question: http://www.mathworks.com/matlabcentral/answers/32490-modify-an-embedded-matlab-function-b...

fast 14 Jahre vor | 1

| akzeptiert

Beantwortet
Using a compiled matlab function in my programs.
I'd recommend looking at the <http://www.mathworks.com/help/toolbox/compiler/btdxt02-1.html examples in the documentation> to un...

etwa 14 Jahre vor | 0

Beantwortet
How can I choose the workspace destination ?
It might be best to keep all simulation data within your function workspace if you plan to operate on the logged outputs/states ...

etwa 14 Jahre vor | 2

Beantwortet
S-Function Builder Simple Integrator Implementation
Your Derivatives tab looks right, but I think you need this in your Outputs tab: y0[0] = xC[0]; Note that this is wha...

etwa 14 Jahre vor | 2

| akzeptiert

Beantwortet
Simulink Support Package and Arduino Mega 1280
Did you mean the package available <http://www.mathworks.com/matlabcentral/fileexchange/24675 here>? According to the comments/d...

etwa 14 Jahre vor | 0

Beantwortet
I couldn't able to run Level 2 M-file S function...
You need to call setup from your top-level function: function svpwm_states(block) setup(block);

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
How to use targetinstaller for previous version of Matlab, such as R2009a, to install lego toolbox?
The targetinstaller utility was introduced with the "Run on target" Simulink feature that started shipping in R2012a - there is ...

etwa 14 Jahre vor | 0

Beantwortet
Integrate existing C++ code into SimuLink model
I'm not entirely sure whether you want to perform your calculations with a Simulink model or using MATLAB commands (you mentione...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Stand alone windows .exe crashes after using deploy tool?
Could you try running your executable from a command window (as opposed to simply double-clicking on it)? Alternatively, you can...

etwa 14 Jahre vor | 0

Beantwortet
RTW -> Warning: SIT 2009 Unknown data type. Constructor is enum
That error message seems to be specific to using the NI Real-Time Target (nidll.tlc) from the <http://digital.ni.com/public.nsf/...

etwa 14 Jahre vor | 0

Beantwortet
How to use an overloaded function from a MATLAB compiled Dll in C# via P/Invoke ?
I am assuming you use varargin in your definition of myfun.m, in order to allow a variable number of inputs? I don't know for su...

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
S-function compilation error
Is this a hand-written S-function? It looks like you might need to link against additional source files or libraries that define...

etwa 14 Jahre vor | 1

Beantwortet
ERROR : "Undefined function or variable 'ts'". While running the program
Your model has a block sample time set to the variable 'ts', which needs to exist in the workspace. You can create this variable...

etwa 14 Jahre vor | 2

Beantwortet
Using Text inside a Embedded Matlab function
As is <http://www.mathworks.com/help/toolbox/eml/ug/bq37dee.html documented here>, cell arrays are not supported for Code Genera...

etwa 14 Jahre vor | 3

Beantwortet
What is the difference between Signal Processing Toolbox and DSP System Toolbox R2023a?
AFAIK, DSP System Toolbox (which was introduced in R2011a) simply <http://www.mathworks.com/help/toolbox/dsp/rn/bqmfe_z-10.html#...

etwa 14 Jahre vor | 1

Beantwortet
fsolve in simulink model
Perhaps the (Embedded) MATLAB Function block is not right for you, because FSOLVE is not supported for code-generation. If you'r...

etwa 14 Jahre vor | 2

| akzeptiert

Beantwortet
How can I run a Lego Mindstorms robot without the Simulink model option "Run on target hardware"?
Do you still see an option until Tools that says "Install/Update Package" or something to that effect? I've had the "Run on targ...

etwa 14 Jahre vor | 0

Beantwortet
How to read a video which is implemented by visual studio 2008 in matlab 2010?
I'm guessing that you meant to say that you have a C/C++ program that produces a video feed, which you want to make accessible t...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
Error message in Simulink
First, I think you should tackle the error that you see with the ODE45 solver - it looks like there is a problem with your S-fun...

etwa 14 Jahre vor | 0

| akzeptiert

Beantwortet
How do I get the version number of the Simulink in which the model was developed?
Please see <http://www.mathworks.com/support/solutions/en/data/1-9R4JIM/index.html How can I find out which version was used to ...

etwa 14 Jahre vor | 4

| akzeptiert

Beantwortet
How to exchange the data between two seperate simulink (.mld) model
For them to exchange data, they need to be running simultaneously, correct? AFAIK, the only way to run multiple models simultane...

etwa 14 Jahre vor | 0

Beantwortet
Debugging a project which has mex files associated with it
Could you explain more about what you mean by "can't get to run both of them together"? I have debugged MATLAB files and C-MEX f...

etwa 14 Jahre vor | 0

Beantwortet
How do I cut (chop) a vector in Simulink?
Try the <http://www.mathworks.com/help/toolbox/simulink/slref/selector.html Selector> block.

etwa 14 Jahre vor | 1

| akzeptiert

Beantwortet
Customizing Simulink block diagram options
It doesn't look like you can customize context (right-click) menus at this point. As per the <http://www.mathworks.com/help/rele...

etwa 14 Jahre vor | 2

Mehr laden