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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

| akzeptiert

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 2

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 1

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

fast 15 Jahre vor | 0

| akzeptiert

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

fast 15 Jahre vor | 0

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

fast 15 Jahre vor | 0

| akzeptiert

Mehr laden