Answered
the C random seed is not shared by two mex-complied files
MEX-files are the equivalent of shared libraries (DLLs on Windows) - I don't know too much about how rand() operates, but it see...

13 years ago | 0

Answered
To add comment as part of signal name
I don't think this is currently possible for signals. For blocks, you can achieve a similar effect by using block annotations (r...

13 years ago | 1

| accepted

Answered
Update and Outouts in S function
# Yes, this is true in general. However, I believe the Outputs function may be called more than once if the S-function has conti...

13 years ago | 1

| accepted

Answered
i want to transmit and receive audio or wave file ..
You should be able to do this using the <http://www.mathworks.com/help/dsp/ref/frommultimediafile.html From Multimedia File> and...

13 years ago | 1

Answered
Is there a way to make dll library compatible with STL contatiners when usin loadlibrary
As per the documentation for <http://www.mathworks.com/help/matlab/ref/loadlibrary.html loadlibrary>, you need to specify a C he...

13 years ago | 0

Answered
mwArray crashing in c++ code
You probably are missing a call to mclInitializeApplication. Please follow the <http://www.mathworks.com/help/compiler/c-shared...

13 years ago | 0

| accepted

Answered
linking error for mwArray in c++
Please see the <http://www.mathworks.com/help/compiler/c-shared-library-target.html#f2-1000836 example in the documentation> for...

13 years ago | 0

| accepted

Answered
Sample time control in S functions
I think you need to have <http://www.mathworks.com/help/simulink/sfg/sample-times.html#f4-109227 specified a port-based sample t...

13 years ago | 0

| accepted

Answered
How can we change output state of delay block during simulation ot its initial value using command prompt
If you use the <http://www.mathworks.com/help/simulink/slref/unitdelayresettable.html Unit Delay Resettable> block, you should b...

13 years ago | 2

Answered
How to add a third-party compiler to MATLAB?
Yes, you can use "mex -setup" to change the MEX compiler, but you can only use one of the <http://www.mathworks.com/support/comp...

13 years ago | 0

| accepted

Answered
generate C code from a Matlab-Simulink model for DSP C6748
I don't see C6748 on the <http://www.mathworks.com/products/embedded-coder/supported/ti-adaptor.html Support for Texas Instrumen...

13 years ago | 0

Answered
Export a Simulink model with an FMU interface
It looks like you may have non-inlined S-functions in your model that the build is unable to handle. What is the System Target F...

13 years ago | 0

Answered
Creating Feedback of Buses
Does the error go away if you insert a Gain block in the feedback path as suggested in <http://www.mathworks.com/matlabcentral/n...

13 years ago | 0

| accepted

Answered
can you use e^(-Ls) in simulink transfer function block
This <http://www.mathworks.com/matlabcentral/answers/42300 previously answered question> might help you.

13 years ago | 0

Answered
Simulink constant parameter read inside Matlab Function block
My answer to <http://www.mathworks.com/matlabcentral/answers/47850-can-i-call-variables-from-a-mask-dialogue-box-in-an-embedded-...

13 years ago | 0

| accepted

Answered
TLC of M-S Function or workaround
Since you already have code that is compatible with MATLAB Coder, you can simply call your function using a <http://www.mathwork...

13 years ago | 0

Answered
sfunction builder function through command line
<http://www.mathworks.com/matlabcentral/answers/37221-sfunction-builder-function-through-command-line This previous discussion> ...

13 years ago | 0

Answered
How can I select a system/model without opening it?
I can't think of a way to switch bdroot to another model, other than Sachin's idea of closing the _current_ bdroot model(model2 ...

13 years ago | 2

Answered
Coder Error with Simulink Embedded function using "fopen": Expected either a logical, char... Found an mxArray )
I think you might need to pre-declare that fid is a double scalar. Does it work if you add "fid=0;" above the "fopen" line?

13 years ago | 1

| accepted

Answered
Simulink error using Data Store Read/Write
Have you verified that 'Util/Common/ReadToggled_LampTest' is indeed not reading from 'Util/Common/Toggled_LampTest' before it's ...

13 years ago | 2

| accepted

Answered
Question about S function
You need to create <http://www.mathworks.com/help/simulink/sfg/about-dwork-vectors.html DWork vectors> for the S-function to sto...

13 years ago | 0

| accepted

Answered
How to control Simmechanics motion from GUI?
I am assuming that you mean to feed input signals/data into Simulink from your GUI, and not just tune parameters, correct? It...

13 years ago | 1

Answered
How to call a .mexw64 file in a .m function? / MEX workflow
# Yes, this is the correct approach. # No, you don't need to set anything up, other than adding the directory containing the .m...

13 years ago | 1

| accepted

Answered
Matlab GUI + Simulink mdl (exe)
You may find this Technical Solution useful: <http://www.mathworks.com/support/solutions/en/data/1-27DUK5/?solution=1-27DUK5 How...

13 years ago | 1

| accepted

Answered
A Pattern to Serialize a Simulink Bus.
This may not work for you since you seem to have a non-virtual bus, but I just wanted to throw it out there. If you could conver...

13 years ago | 2

Answered
Simulink: How can I off Signal after 10 seconds
I think you should use an <http://www.mathworks.com/help/simulink/ug/enabled-subsystems.html Enabled Subsystem> (inside, the inp...

13 years ago | 1

Answered
What is mpt.parameter and mpt.signal?
As far as my understanding goes, mpt.Parameter and mpt.Signal are advanced versions of Simulink.Parameter and Simulink.Signal. T...

13 years ago | 0

Answered
Question about Buffer block
So it looks like you simply want your input concatenated with 5 zeros? Is this correct? If so, you might just want to use the <h...

13 years ago | 1

Answered
Differences in h-file support between Win/Linux for dll/so
Is there a reason, you use: typedef struct TestStructA{ struct SubStructA a[2]; } TestStructA; and not: typ...

13 years ago | 0

Answered
block_diagram does not have a parameter named 'PortHandles'
When do you see this error? Are you using the GET_PARAM command to get the PortHandles? If yes, the first argument must be the p...

13 years ago | 0

Load more