Respondida
How to use your own code in simulink
See <http://www.mathworks.com/help/toolbox/simulink/ug/bq3qcgr.html Comparison of Custom Block Functionality> for a comparison o...

más de 14 años hace | 1

Respondida
How add function to the designated location of c file
See my answer here: http://www.mathworks.com/matlabcentral/answers/21799-how-add-interrupt-function-to-c-file

más de 14 años hace | 0

| aceptada

Respondida
Embedded Matlab Function debugging erroe
If you do not see the folder "slprj" created in your current directory, it is likely that MATLAB does not have write permissions...

más de 14 años hace | 0

Respondida
Use Callback 'stop_fcn' in a xpc-target application
Since the model that runs on the xPC Target is actually a binary generated from the model, I don't think the concept of a StopFc...

más de 14 años hace | 0

Respondida
Integration of MATLAB R2009a with Code Composer Studio
I believe Target Support Package TC2 3.2 (R2009a) has been tested to work with TI Code Composer Studio IDE 3.3 SR8 and SR10.

más de 14 años hace | 0

Respondida
where can i find the frame to stream or stream to frame block in the matlab R2011a simulink library?
Do you mean the model "fil_videosharp_sim"? Both blocks appear to be masked subsystems that consist of other blocks - they are n...

más de 14 años hace | 0

Respondida
MATLAB SIMULINK SPI ADC BLOCK FOR C6000
It doesn't look like the driver block you are looking for is supported from the <http://www.mathworks.com/help/toolbox/ecoder/re...

más de 14 años hace | 0

Respondida
Simulink and altera DSP Builder library
1) As far as I know, Simulink HDL Coder does not generate code specific to boards (such as to control an LED). What block did yo...

más de 14 años hace | 0

Respondida
The use of the Hardware Interrupt block in Target Support Package TC2
I think the expected behavior would be as follows: when the interrupt1 happened and the program runs in the interrupt1 servic...

más de 14 años hace | 0

Respondida
Simulink if/else block
There's at least two ways that I can think of: # Use a 1-D Lookup Table with [0 1 1 2] as the table data and [6-eps 6 20 20+e...

más de 14 años hace | 0

Respondida
Make Error in Simulink – Division by Zero?
There seems to be have been a similar bug before. See <http://www.mathworks.com/support/bugreports/534529 Bug#534529>. However, ...

más de 14 años hace | 0

Respondida
Simulink to C-Code, Problem with "Variable Transport Delay" (Access Violation)
The main() used for executing the generated code is in $matlabroot/rtw/c/grt/grt_main.c - perhaps you can follow the same sequen...

más de 14 años hace | 2

| aceptada

Respondida
interfacing with exe from matlab
You may need to modify the code generated for the executable so that you can use a command-line argument (or some similar idea) ...

más de 14 años hace | 0

Respondida
Use Fortran DLL in Matlab which has no header .h file
As far as I know, you do need to provide a header to load a library in MATLAB (don't know of a way to get around that). You coul...

más de 14 años hace | 0

| aceptada

Respondida
Stand Alone Code from Matlab.m
The only way you can currently create a completely standalone executable from MATLAB code is using <http://www.mathworks.com/pro...

más de 14 años hace | 1

| aceptada

Respondida
Using global variable to define a Simulink block parameter
When you update your model, is that parameter created in the base workspace? Make sure that you the place where you define the p...

más de 14 años hace | 1

Respondida
compile C code in matlab from linux
What version of gcc are you using? You need gcc 4.2.3 for <http://www.mathworks.com/support/compilers/release2009a/linux.html R2...

más de 14 años hace | 1

| aceptada

Respondida
external mode compatible with dll target ?
Just as a clarification, xPC Target <http://www.mathworks.com/help/toolbox/xpc/ug/f6-79480.html#bqnlfj_-1 does work with Simulin...

más de 14 años hace | 0

| aceptada

Respondida
mwArray& varargin initialize
You need to create a cell array as follows: mwArray input(1, 3, mxCELL_CLASS); mwArray arg1("EngSpeed"); mwArray arg2...

más de 14 años hace | 2

| aceptada

Respondida
MATLAB Compiler Standalone Application hogs memory in Linux
Yes, I do believe that a new instance of the MCR is started for every instance of the compiled executable. That is what is likel...

más de 14 años hace | 1

Respondida
supress command line output from exe
If you are using the ERT target, you can edit the generated ert_main.c and comment out the printf calls that are generating that...

más de 14 años hace | 1

Respondida
Code Generation: Static local variables
I don't think there is currently a simple solution for this (I would recommend putting in an enhancement request with MathWorks ...

más de 14 años hace | 1

| aceptada

Respondida
How add interrupt function to c file
I don't know what the "proper" way to do this is, but here's a quick-and-dirty way that I can think of: %openfile tmpBuf ...

más de 14 años hace | 1

| aceptada

Respondida
how to use embedded coder in simulink to talk to C6713 dsk board?
Wei: You have previously asked a very similar question at http://www.mathworks.com/matlabcentral/answers/21765-how-to-interface-...

más de 14 años hace | 0

Respondida
how to interface simulink model to my C6713 DSK board?
I would recommend that you go over the tutorial in the <http://www.mathworks.com/help/toolbox/ecoder/ug/bsz1i47.html documentati...

más de 14 años hace | 0

Respondida
Cannot deduce a transfer function! Help!
It appears that 'butter' is not a valid design method for the band-pass filter object. Using designmethods on your filter desig...

más de 14 años hace | 0

Respondida
Compiling/inlining an M-file S-Function (which calls a MEX file)
Yes, TLC files do indeed define how the outputs are to be calculated in the generated code (this may or may not match simulation...

más de 14 años hace | 0

| aceptada

Respondida
Problem creating a project with Matlab 2011a and DSP28035
The 2803x C/C++ header files installation should be separate from your MATLAB installation. So I don't think C:\Program Files\MA...

más de 14 años hace | 1

| aceptada

Respondida
How to use Simulink Coder to Convert .mdl file into .exe
I would recommend starting with the Simulink Coder <http://www.mathworks.com/products/simulink-coder/demos.html demos/videos> to...

más de 14 años hace | 0

| aceptada

Respondida
(Simulink) Passing a string from the mask to a block
The documentation page <http://www.mathworks.com/help/toolbox/simulink/ug/brx7xj4.html Creating a Block Mask> explains creation ...

más de 14 años hace | 0

Cargar más