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

14 years ago | 1

Answered
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

14 years ago | 0

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

Answered
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, ...

14 years ago | 0

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

14 years ago | 2

| accepted

Answered
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) ...

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 1

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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

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

14 years ago | 2

| accepted

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

14 years ago | 1

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

14 years ago | 1

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

14 years ago | 1

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

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

14 years ago | 0

| accepted

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

14 years ago | 1

| accepted

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

14 years ago | 0

| accepted

Answered
(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 ...

14 years ago | 0

Load more