Answered
Sending a floating value from simulink model to workspace
See <http://www.mathworks.com/help/toolbox/simulink/ug/f13-92122.html Accessing Block Data During Simulation>. There is also a g...

14 years ago | 0

Answered
Detecting new COM port created by USB-serial convertor
Are you able to use the SERIAL command to open the port? s = serial('COM4'); fopen(s) %s.Status should be 'open' ...

14 years ago | 0

Answered
run simulink model from visual studio GUI
You can start MATLAB as a <http://www.mathworks.com/help/techdoc/matlab_external/brd0v3w.html COM server> and execute the <http:...

14 years ago | 0

| accepted

Answered
Avoid using the built-in libs
Note that MEX files are actually DLLs (with a slightly different extension). AFAIK, the standard behavior on Windows machines is...

14 years ago | 0

Answered
Transfer of Fcn Block between Simulink and MATLAB
If you are using the <http://www.mathworks.com/help/toolbox/simulink/slref/fcn.html Fcn> block, you can simply change the settin...

14 years ago | 2

| accepted

Answered
How to use the Simulink Realtime Workshop?
It looks like you need the <http://www.mathworks.com/help/toolbox/simulink/slref/unitdelay.html Unit Delay> block.

14 years ago | 0

Answered
Explain this error?
The error message is fairly explanatory, but I can imagine that it could be confusing if you don't understand some of the termin...

14 years ago | 0

Answered
Interface matlab/simulink into a circuit
You can use any hardware that supports an ANSI C compiler. See my previous answer here for information about generating C code f...

14 years ago | 1

Answered
Calling/Conversion of image processing in M-file to Simulink
As far as I know, the <http://www.xilinx.com/tools/sysgen.htm System Generator> software can generate HDL code only from the Sim...

14 years ago | 1

| accepted

Answered
Speech recognition for attendance
If you are willing to use existing libraries and are developing on Windows, you should be able to take advantage of the <http://...

14 years ago | 0

Answered
system - wget
Inside MATLAB, run: >> !printenv LD_LIBRARY_PATH or >> system('printenv LD_LIBRARY_PATH') and see if it matches the output...

14 years ago | 0

Answered
Simulink - Speeding up
I hesitate to provide a simple answer to this, but here is goes anyway. Almost all Simulink library blocks are either impleme...

14 years ago | 0

Answered
Simulink - Embedded Matlab - Usable functions
1. Yes, you are right that the speed of execution of the Embedded MATLAB block depends on whether you are calling un-supported M...

14 years ago | 0

Answered
Linking Simulink to Bladed
I don't have experience with Bladed, but I do agree that option#1 is more straight-forward and likely to cause fewer issues (lik...

14 years ago | 0

| accepted

Answered
MATLAB .exe distributable with pcode (*.p) file
MATLAB Compiler finds all *.m, *.p, MEX-files, etc. that your application calls, and packages them into a <http://www.mathworks....

14 years ago | 0

| accepted

Answered
pass a parameter to a masked subsystem
You can set some initial values on the variables from the Initialization pane, but I think the right place for you to put the co...

14 years ago | 0

Answered
MWMCR exception - Attempted to read or write protected memory.
Have you copied mclmcrrt7x.dll to a location outside of the MCR installation directory? It looks like that could cause this erro...

14 years ago | 1

Answered
Simulink progress from command line
I don't know of a public API that you can use to query the progress of simulation, but if you're familiar with C-MEX S-functions...

14 years ago | 1

Answered
mex, mwblas, and multithreading: controlling the number of threads
From what I understand, the choice needs to be made at MATLAB startup. Starting MATLAB with the -singleCompThread option will fo...

14 years ago | 0

Answered
is there any where to convert an matlab algorithm to working on my microcontroller?
What kind of Simulink block is it? Double-click on the block to see whether it opens up an Editor (in which case, you can genera...

14 years ago | 0

Answered
debugging a mex file with eclipse cdt
Strange - I don't know why attaching the MATLAB process to Eclipse should hang MATLAB - especially because you seem to have done...

14 years ago | 0

Answered
Stream Data File using System Objects
I don't see a System object to read/write from files either, but I found this demo: <http://www.mathworks.com/products/dsp-syste...

14 years ago | 1

| accepted

Answered
Quanser+Simulink Real-time workshop, triggered save to host computer.
What version of MATLAB are you using? At least in the latest release, it appears possible to select individual signals for trigg...

14 years ago | 0

| accepted

Answered
Fortran 10.0.026
Each MATLAB release supports only a limited set of compilers. It is likely that your release only supports v9.0. Find the comple...

14 years ago | 0

Answered
Display output using micro-controller block in simulation
# Are you going to directly connect your display to your host/PC machine? If so, what type of interface will you use? # If you ...

14 years ago | 2

| accepted

Answered
Via COM bridge of Matlab - getting Matlab structs
I can't imagine that deferencing a structure element via GetCharArray or GetVariable is possible. You are effectively looking fo...

14 years ago | 0

Answered
error mex compiler
Are you on 64-bit MATLAB? If yes, you may not have installed x64 compilers for Visual Studio. See <http://www.mathworks.com/supp...

14 years ago | 1

Answered
How to check if a key is pressed in each iteration in simulink?
I don't think this functionality is available in MATLAB, but you should be able to find an OS-specific API in C/C++ that lets yo...

14 years ago | 0

| accepted

Answered
Recording a GUI from simulink
Do you mean that you want to capture some plot from your GUI to a video file? Then using the functions getframe and addframe in ...

14 years ago | 0

Answered
Dereferencing bus signal in Stateflow
The <http://www.mathworks.com/help/toolbox/simulink/ug/bsocrb0.html#bsocre9 documentation> states: Stateflow action langua...

14 years ago | 0

| accepted

Load more