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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 1

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

| aceptada

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

casi 13 años hace | 0

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

alrededor de 13 años hace | 0

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

alrededor de 13 años hace | 0

Cargar más