Risposto
function care in embedded matlab function, traslate in a C function
The diective <http://www.mathworks.com/help/simulink/slref/coder.extrinsic.html coder.extrinsic> is meant to be used to declare ...

quasi 13 anni fa | 0

Risposto
C++ S-Function DYNAMICALLY_SIZED only known after mdlStart
Unfortunately, no, the Simulink Engine allocates memory for the input and output signals in time for mdlStart, so the S-function...

quasi 13 anni fa | 0

| accettato

Risposto
Own USB (ftdi) device -> simulink
If you know how to read/write from the device using C/C++ code, you can create a custom Simulink block using <http://www.mathwor...

quasi 13 anni fa | 0

Risposto
Simulink coder for Fortran
No, Simulink Coder can only generate C/C++ code from Simulink models. I don't know much about FORTRAN, but perhaps you can gener...

quasi 13 anni fa | 1

| accettato

Risposto
Is there a difference between an embedded function implementation in simulink and the m file code implementation?
You might want to use the <http://www.mathworks.com/help/simulink/slref/ic.html IC> block in your feedback loop to ensure that y...

quasi 13 anni fa | 0

Risposto
Writing value to Workspace and taking that value from workspace to be used in another model part
I don't think Variant Subsystems are meant to switching between variants at run-time. As the <http://www.mathworks.com/help/simu...

quasi 13 anni fa | 0

Risposto
creating fortran S function
You probably have a C compiler selected for MEX? Could you make sure you have a <http://www.mathworks.com/support/sysreq/previou...

quasi 13 anni fa | 0

Risposto
Can i change Simulink block properties from the C code?
You need to have MATLAB/Simulink installed on the machine that the application running, to achieve what you need. You can use ei...

quasi 13 anni fa | 1

| accettato

Risposto
Reference Multiple Selected Simulink Blocks In Matlab
Please see <http://www.mathworks.com/support/solutions/en/data/1-79TSKI/index.html How do I change a common property of multiple...

quasi 13 anni fa | 1

| accettato

Risposto
How to Programmatically Disable the "Tunable" Option for a Matlab Funcion Block Parameter
This should work: set(ins, 'Scope', 'Parameter', 'Tunable', false);

quasi 13 anni fa | 0

| accettato

Risposto
C++ style comments in s-functions with Linux
My guess is that the option is tied to the <http://www.mathworks.com/help/rtwin/ref/code-generation-pane-real-time-windows-targe...

quasi 13 anni fa | 0

Risposto
Autocode fails without setting S-function parameters as runtime params
I think |ssRegAllTunableParamsAsRunTimeParams(S, names);| is the right command to use in your case. To access the corresponding ...

quasi 13 anni fa | 0

| accettato

Risposto
Relation between .dll files and S-functions?
Note that since R14SP3, the .dll extension is no longer used for MEX-files in MATLAB (see <http://www.mathworks.com/help/matlab/...

quasi 13 anni fa | 0

| accettato

Risposto
Issue : Attempt to modify read-only subsystem
The Subsystem <http://www.mathworks.com/help/simulink/slref/codereusesubsystem.html Dialog Box> should have a parameter labeled ...

quasi 13 anni fa | 0

Risposto
Exchange data between two simulink simulations in real time
You may want to create a third model that uses the <http://www.mathworks.com/help/simulink/slref/model.html Model> block to brin...

quasi 13 anni fa | 0

Risposto
create blocks in simulink at run time
No, you cannot structurally change a model at run-time, but you can use <http://www.mathworks.com/help/simulink/conditional-subs...

quasi 13 anni fa | 0

Risposto
How to run a MATLAB program on DSK 6713 kit?
Please see <http://www.mathworks.com/matlabcentral/answers/29644 this previously answered question>.

quasi 13 anni fa | 0

Risposto
How to run the MATLAB Compiler from inside a C# windows application
You should first write a MATLAB function using the MATLAB Compiler command-line API (look for mcc in the documentation to get st...

quasi 13 anni fa | 0

| accettato

Risposto
Variable Time Step Solver
I think the only way to see this might be to log those intermediate signals also, using something like the <http://www.mathworks...

quasi 13 anni fa | 0

Risposto
S-Function: Inital Value as Output
|mdlOutputs| is indeed executed only during model execution, so |ssGetSimStatus| should always return |SIMSTATUS_RUNNING|. I thi...

quasi 13 anni fa | 1

| accettato

Risposto
Output variable in matlab function block of simulink is not of matlab type. How to resolve this?
Please see <http://www.mathworks.com/matlabcentral/answers/13189#answer_18054 my answer> for a similar question that was previou...

quasi 13 anni fa | 0

| accettato

Risposto
convert to s-function level 2
Please look at the third row on <http://www.mathworks.com/help/simulink/sfg/maintaining-level-1-matlab-s-functions.html#bq3i98j ...

quasi 13 anni fa | 0

Risposto
How to use the variable?
You can create a third model which uses <http://www.mathworks.com/help/simulink/model-reference.html Model Referencing> to bring...

quasi 13 anni fa | 0

Risposto
Simulink variant subsystems: How to read subsystem parameters by commandline
I believe the way to do this is to use FIND_SYSTEM on the Variant Subsystem with a 'SearchDepth' of '1' option to get all the va...

quasi 13 anni fa | 0

Risposto
Error: S-Function 'GridControl_sf' does not exist
The 32 in .mexw32 does indeed stand for 32-bit Windows. On 64-bit Windows, the MEX extension is .mexw64, so it looks like you ne...

quasi 13 anni fa | 0

| accettato

Risposto
Can I get information on list of Simulink Blocksets from the MATLAB installation directory on my computer?
I don't know of a public API that returns the list of Simulink blocks available, but you might be able to use my answer to <http...

quasi 13 anni fa | 0

Risposto
pass a system object to a function for codegen
AFAIK, it is not possible to pass in a System object as an argument to a function that you'd like to generate code from. The Sys...

quasi 13 anni fa | 0

Risposto
Why do I get an error using a microcontroller library with S-function builder?
Where is __delay32 defined? Assuming that it is in an external library/source file, you need to add that file to the 'Library/Ob...

quasi 13 anni fa | 0

Risposto
How to use mex files in MATLAB Function block?
You will need to declare MEX-functions using coder.extrinsic, just like you would <http://www.mathworks.com/help/simulink/ug/cal...

quasi 13 anni fa | 0

Risposto
How to run arduino toolbox for simulink in r2010a matlab version?
See <http://www.mathworks.com/support/solutions/en/data/1-HCE464/index.html?solution=1-HCE464 Is Arduino® supported in previous ...

quasi 13 anni fa | 1

| accettato

Carica altro