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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

| akzeptiert

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 0

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

mehr als 12 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 1

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 0

| akzeptiert

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

fast 13 Jahre vor | 1

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

fast 13 Jahre vor | 2

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

fast 13 Jahre vor | 0

Mehr laden