Risposto
I am working in Matlab7.I want to know how to program a microcontroller (8051) in Matlab. how to generate hex code and how to deploy it.
You can use the <http://www.mathworks.com/products/matlab-coder/index.html MATLAB Coder> product to generate ANSI/ISO compliant ...

circa 12 anni fa | 0

Risposto
Simulink exportation in C/C++ : input array size
You can use signals of undetermined size in Simulink using <http://www.mathworks.com/help/simulink/ug/variable-size-signal-basic...

circa 12 anni fa | 0

Risposto
How to convert C++ simulations to Simulink?
To bring C++ code into Simulink, you need to create a C-MEX S-function wrapper so that it can be used like any other S-function ...

oltre 12 anni fa | 0

Risposto
Force Update a Block Output at Minor Time Steps
As far as I know, these blocks are internally configured to be <http://www.mathworks.com/help/simulink/ug/types-of-sample-time.h...

oltre 12 anni fa | 0

Risposto
Simulink - vary which part of a structure is accessed in a matlab function block (using a bus)
I think the only way this code might work is if the variable |which_force| is configured as a non-tunable parameter of the block...

oltre 12 anni fa | 0

| accettato

Risposto
Command-duality is not supported to execute "mex -setup"
You are probably calling a function using the command syntax, instead of the function syntax. The former syntax is not supported...

oltre 12 anni fa | 0

Risposto
Simulink C2000 linux Error calling generated SFunction, trasf_sfun. Invalid MEX-file
During normal mode simulation, Simulink generates a MEX-file from Embedded MATLAB Function blocks for execution. The MEX-file ty...

oltre 12 anni fa | 0

Risposto
Generate DLL from Simulink model
You can use |ert_shrlib.tlc| if you have the Embedded Coder product to generate generic DLLs from your Simulink model. The relev...

oltre 12 anni fa | 1

| accettato

Risposto
What is the advantage of defining a variable as workspace object?
Using just a regular variable allows you to define a value for a parameter. However, using a <http://www.mathworks.com/help/simu...

oltre 12 anni fa | 0

Risposto
Generation of an S-function block in simulink by integrating legacy C-code through the legacy code tool
Seems related to <http://www.mathworks.com/support/bugreports/661855 Bug# 661855>. A patch is available on that page.

oltre 12 anni fa | 0

| accettato

Risposto
When using Variant Models is it possible to select a model at run time, instead of at compile?
No, Variant Subsystems cannot be selected at run-time. You need to use <http://www.mathworks.com/help/simulink/ug/about-conditio...

oltre 12 anni fa | 1

| accettato

Risposto
How to indicate in MATLAB GUI when simulation in SIMULINK is complete?
You can use |get_param('sys','SimulationStatus')| to query when a model has finished simulation. This should return |'stopped'| ...

oltre 12 anni fa | 0

Risposto
Is there any way to conditionally trigger a subsystem having multiple sample time blocks in Simulink?
You might want to use an <http://www.mathworks.com/help/simulink/ug/enabled-subsystems.html Enabled Subsystem> and use the condi...

oltre 12 anni fa | 1

| accettato

Risposto
Why MATLAB fn block and S function block are not supported for RTW code generation?
The <http://www.mathworks.com/help/simulink/slref/interpretedmatlabfunction.html Interpreted MATLAB Function> block is not suppo...

oltre 12 anni fa | 0

Risposto
Load a .dll file in Simulink
Yes, this should be possible. I would recommend that you first achieve the interface using plain MATLAB code. For help, see <htt...

oltre 12 anni fa | 0

Risposto
How to ensure generated code is compatible to the microcontroller?
Not sure exactly what you're asking here, but as described on the <http://www.mathworks.com/products/simulink-coder/description1...

oltre 12 anni fa | 0

Risposto
How to detect Enable/Trigger/Function call subsystem ?
It should be: en_ports = find_system(system_name, 'BlockType', 'EnablePort'); trig_ports = find_system(system_name, 'Blo...

oltre 12 anni fa | 1

| accettato

Risposto
simulink pid tuning error
Perhaps it's related to <http://www.mathworks.com/support/solutions/en/data/1-69H204/index.html Why do I get an error about an I...

oltre 12 anni fa | 0

Risposto
How to use actxserver to open Excel 2010 Application Object? (Both Excel 2003 and 2010 installed)
MATLAB just starts up the version that is set up as the COM Automation Server with that Application ID, with the OS. You may wan...

oltre 12 anni fa | 0

Risposto
How realised analysis parametric with simulink?
This example demonstrates how you can do a parameter sweep for a Simulink model using Parallel Computing Toolbox: <http://www.ma...

oltre 12 anni fa | 0

| accettato

Risposto
embedding an icon to mask in Simulink
I think you can package all dependencies such as the mask icon image into a <http://blogs.mathworks.com/seth/2011/09/02/simulink...

oltre 12 anni fa | 0

Risposto
Large RAM requirements for Simulink simulations
While this doesn't directly answer your question about why a large amount of RAM is being used, one solution for you might be to...

oltre 12 anni fa | 0

Risposto
how to create a simulink model of a room with a number of luminaires having seperate control to adjust brightness using pwm control
It sounds to me like this should be possible to model in Simulink. You can use Enabled Subsystems to turn the devices on/off.

oltre 12 anni fa | 0

Risposto
Run Older MCR Version on Windows
Is there a reason you want to use an older version of MCR? If you compiled with R2013b, you *must* use MCR 8.2. MCR 7.17 only wo...

oltre 12 anni fa | 0

| accettato

Risposto
Loading Simulink library created in a newer version...
Is this library part of a MathWorks product, or your own? As long as it's not part of a MathWorks product, you can use File>Save...

oltre 12 anni fa | 0

Risposto
Delphi Calling Matlab dll
You may find this previous discussion useful: <http://www.mathworks.com/matlabcentral/answers/7124-delphi-and-matlab-dll Delphi ...

oltre 12 anni fa | 0

| accettato

Risposto
Problems with MaskDisplay command
You can just execute what you're passing in as the third parameter to |set_param| to make sure that it's a string (and not a cel...

oltre 12 anni fa | 0

| accettato

Risposto
How to compute data in simulink in an iteration save or update some variables and use in computation of next iteration?
You can use the <http://www.mathworks.com/help/simulink/slref/unitdelay.html Unit Delay> block to get the previous output value....

oltre 12 anni fa | 1

Risposto
what is kernel?what is Real-Time Windows ?????????????/
<http://www.mathworks.com/help/rtwin/ug/real-time-windows-target-kernel.html Real-Time Windows Target - Install Real-Time Kernel...

oltre 12 anni fa | 2

Risposto
Using Matlab Call CPLEX function
Please see the documentation section: <http://www.mathworks.com/help/matlab/matlab_external/invalid-mex-file-error.html Invalid ...

oltre 12 anni fa | 0

Carica altro