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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 1

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

| accettato

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

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

oltre 13 anni fa | 0

Carica altro