回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

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

14年以上 前 | 2

| 採用済み

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

回答済み
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年以上 前 | 0

| 採用済み

回答済み
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年以上 前 | 1

| 採用済み

回答済み
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年以上 前 | 0

| 採用済み

回答済み
(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年以上 前 | 0

さらに読み込む