Answered
How can exported code from Simulink be compiled into a DLL using Visual Studio?
Have you exported the required methods from the code? FYI, you may want to use the <http://www.mathworks.com/help/ecoder/ug/crea...

13 years ago | 0

Answered
Is it possible to add a C wrapper to a SFunction?
I don't believe it is currently possible to execute S-functions outside of the Simulink environment. the SimStruct data structur...

13 years ago | 0

| accepted

Answered
I need help using embedded matlab functions for an iterative learning controller
You are using the variable 'z' as a state, but note that the line: z=zeros(1,99999); is executed at every time-step, so...

13 years ago | 0

Answered
How do i do moving average in s-function level 2?
It looks like you need to maintain a "state" on the block. Please look into <http://www.mathworks.com/help/simulink/sfg/how-to-u...

13 years ago | 0

Answered
when i used embedded matlab function for performng following code i got the error message.Here input 'Edge' from a sobel filter block,output is y
Since 'bwlabel' is declared as an extrinsic function and is unsupported for code-generation, the block is unable to analyze what...

13 years ago | 0

| accepted

Answered
How to built .m file to ccs without simulink?
Please see #2 in my answer <http://www.mathworks.com/matlabcentral/answers/29644 here>.

13 years ago | 0

Answered
Update Diagram (sample time or automatically)
"Update Diagram" runs automatically at the beginning of every simulation, but needs to be run manually if you make any manual ch...

13 years ago | 0

Answered
How can the mex-file error be resolved on my system?
The error "specified module could not be found" typically indicates that the MEX-file is trying to load one or more DLLs that it...

13 years ago | 0

Answered
Trouble inlining C-Mex S-Functions
I think you might be using the Legacy Code Tool incorrectly - the code that you supply to the tool is supposed to be standalone ...

13 years ago | 1

| accepted

Answered
Simulink Coder- Post Processing
Did you run the build again after running the |set_param|? The function is called by the build process and is not invoked immedi...

13 years ago | 0

Answered
Debugging Simulink Export code in Visual Studio
Once you generate the code from Simulink, it is like any other generic C++ code, so this seems like a general C++ question, than...

13 years ago | 0

Answered
Checking "Signal must resolve to Simulink signal object" checkbox from code
srcPort = get_param(signal_line, 'SrcPortHandle'); set(srcPort,'MustResolveToSignalObject', 'on'); More information here...

13 years ago | 1

| accepted

Answered
Runing matlab's engine when Matlab is installed on a different computer in the network
Such a capability is documented as possible on Unix. Please see the <http://www.mathworks.com/help/matlab/apiref/engopen.html en...

13 years ago | 1

| accepted

Answered
how to name states and outputs in level 1 sfunction
I'm not 100% sure, but my best guess is that there isn't a way to name them in Level-1 S-functions. You may find it fairly simpl...

13 years ago | 0

| accepted

Answered
Change the color of singal line in Simulink (2012b)
I don't believe it is currently possible to change the color of a signal independent of the associated block. Please feel free t...

13 years ago | 0

| accepted

Answered
Two questions regarding Matlab's Engine (running Matlab from C programs)
See <http://www.mathworks.com/help/matlab/matlab_external/compiling-engine-applications-in-an-ide.html Compiling Engine Applicat...

13 years ago | 0

Answered
How to execute an .m file from the command line in windows without opening a new matlab copy
I think you need to write code to call into <http://www.mathworks.com/help/matlab/call-matlab-com-automation-server.html MATLAB ...

13 years ago | 1

| accepted

Answered
Matlab Engine Library for Zero-Crossing Detection
I see it defined in simulink/include/simulink.c, which is supposed to be included in all S-functions by virtue of the lines: ...

13 years ago | 0

Answered
Using C code in s-functions
# It depends on where this function needs to be called from. Can you elaborate on how the function needs to be used? # For stru...

13 years ago | 0

Answered
Stop a mask callback from being called to not display it
I don't think you can prevent the Mask Dialog from opening - what would you have it do? Throw an error, or have a no-op? However...

13 years ago | 0

Answered
Import Data From File To run a simulink standalone aplication!
You may find the <http://www.mathworks.com/help/rtw/ug/parameters.html Parameters> section in the Simulink Coder documentation u...

13 years ago | 0

Answered
SL MATALB function block a bus-capable block ?
Please read the <http://www.mathworks.com/help/simulink/ug/attach-bus-signals-to-matlab-function-blocks.html documentation> on h...

13 years ago | 0

| accepted

Answered
GUI popup menu linked to a SIMULINK S-function
Perhaps this is what you're looking for: <http://www.mathworks.com/help/matlab/creating_guis/a-gui-to-set-simulink-model-paramet...

13 years ago | 0

Answered
Simulink: Randomize connections between blocks (connect blocks randomly)
You could write a MATLAB function to randomize the connections. Connections can be made with <http://www.mathworks.com/help/simu...

13 years ago | 0

Answered
How to use Beagleboard serial port?
Perhaps <http://www.mathworks.com/support/solutions/en/data/1-GYO11R/index.html this solution> will help you.

13 years ago | 0

Answered
What is the use of acclerator mode and normal mode of simulation ?
Please read the <http://www.mathworks.com/help/simulink/ug/choosing-a-solver.html Choose a Solver> to understand how solvers aff...

13 years ago | 0

| accepted

Answered
What is a differece between a constant and Paremeter in Model simulation ?
Do you mean that a Parameter can serve as a Constant? I think a Constant is still needed because it's value doesn't change durin...

13 years ago | 0

| accepted

Answered
What is the difference between mcc and coder
Please see my previous answer <http://www.mathworks.com/matlabcentral/answers/23369#answer_30714 here>.

13 years ago | 0

Answered
Is there any possobility to load matlab code in dsk6713 processor
You can use MATLAB Coder to generate C code from your MATLAB functions as long as they are compatible with the <http://www.mathw...

13 years ago | 0

Answered
Record Multiple wmv (videos) in a Simulink model
If you're using a version of MATLAB between R2010a and R2011a, I would recommending looking at this <http://www.mathworks.com/su...

13 years ago | 0

Load more