Answered
Use of command line to modify Simulink models
Click on "MATLAB Functions" on <https://www.mathworks.com/help/simulink/modeling-basics.html this documentation page> too see th...

13 years ago | 2

Answered
how to embed matlab function simulink
As explained in <http://www.mathworks.in/matlabcentral/answers/16916-using-global-variables-in-embedded-matlab-function-in-simul...

13 years ago | 3

Answered
Signal Builder Active Group
According to <http://www.mathworks.com/support/solutions/en/data/1-155VF8/index.html?product=SL&solution=1-155VF8 this solution>...

13 years ago | 1

Answered
How do I return a byte array from an S-Function (made from C code) to Simulink?
Since Simulink allocates and manages the memory for the input and the output, in general, the engine will maintain separate memo...

13 years ago | 1

| accepted

Answered
How to make codegen concatenate strings
I think you'll get closer to what you want by using the right MATLAB Coder directives: function testStrCat() path = co...

13 years ago | 1

| accepted

Answered
Display the tag of a Simulink block from the command window ?
Try: set_param('path/to/block', 'AttributesFormatString', '%<Tag>')

13 years ago | 2

| accepted

Answered
How to pass C-structures as output for using Legacy code?
Structures are basically called Bus signals in Simulink. You might need to a define a <http://www.mathworks.com/help/simulink/sl...

13 years ago | 0

Answered
How can I generate a array of bus by simulink R2007b
You cannot create an array of buses in R2007b - it appears that the capability was added only in R2010b according to the <http:/...

13 years ago | 0

| accepted

Answered
Is it possible to write to a MATLAB workspace parameter from within a TLC file?
I'm guessing this is not working, because you are doing the equivalent of: >> b = evalin('base','var1 = 10') When execut...

13 years ago | 0

Answered
How to display port names in S-Function block just like they show up for Simulink subsystems?
You can create a Mask on top of the block and create your own icon and port labels. Right click on the block and select Mask>Cre...

13 years ago | 2

| accepted

Answered
Create custom arduino simulink blocks to use existing arduino libraries
You can use the <http://www.mathworks.com/help/simulink/sfg/integrating-existing-c-functions-into-simulink-models-with-the-legac...

13 years ago | 1

Answered
Using LibBlockParameter() in M-S-Function
Based on <http://www.mathworks.com/matlabcentral/answers/40842-using-libblockparameter-into-a-conditional-directive-if this prev...

13 years ago | 0

Answered
Error using loadlibrary; side-by-side configuration is incorrect
It looks like that third-party DLL may be missing some dependencies. What about if you try with the sxstrace.exe tool - does it ...

13 years ago | 0

| accepted

Answered
Is it possible to create a single executable file from a GUI developed in GUIDE in MATLAB 6.5.1?
You can use the <http://www.mathworks.com/products/compiler/ MATLAB Compiler> product to create an executable from your MATLAB G...

13 years ago | 1

Answered
Arduino.m file not working with Simulink
I think you should be using the corresponding Arduino blocks instead of MATLAB functions. Please see if these downloads are of h...

13 years ago | 0

Answered
xPC-target slower than Simulink in my application?!
Martijn: I don't have a lot of experience with xPC Target, so I'll leave others with more expertise to help you our on the perfo...

13 years ago | 0

Answered
How can I add attributes to paramater in c- code using TLC
I think you need to define a custom Data Class to achieve something like this. Not sure what version of MATLAB you are using, bu...

13 years ago | 1

Answered
Can be imported a .dll file to Simulink?
Technically you should be able to bring any generic DLL into Simulink via an S-function block, but I'm not completely confident ...

13 years ago | 1

Answered
Running parameterized Simulink simulations from within functions
Please see my answer to this <http://www.mathworks.com/matlabcentral/answers/43454#answer_53334 previously asked question>.

13 years ago | 0

Answered
Is it possible to call a S-function with a return value in an other S-Function?
Unfortunately, S-functions can only be called by the Simulink Engine because they expect a SimStruct argument (S) that the Engin...

13 years ago | 1

Answered
How to give input to the block 'model' in simulink
I presume you mean that you have a Simulink model with control systems that you want to use with another Simulink model containi...

13 years ago | 1

| accepted

Answered
Is there a way to run C# code in Matlab?
You might need to expose the code as a .NET library. See <http://www.mathworks.com/help/matlab/using-net-libraries-in-matlab.htm...

13 years ago | 2

Answered
mex file creation from 32 to 64 bits
You do need to have all object/library files that you are linking against to also be of 64-bit architecture, so you need to re-c...

13 years ago | 1

Answered
Updating library information in script
"set_param(Library, 'SimulationCommand', 'update')" is used to compile block diagrams for simulation (for example, signals datat...

13 years ago | 0

Answered
License feature names for Matlab and Simulink Coder toolboxes
I believe they are: matlab_coder (MATLAB Coder) real-time_workshop (Simulink Coder)

13 years ago | 1

Answered
How to call a function within an other function in simulink with the S-Function-Builder, having static variables
Since f1.c and f2.c are separate S-functions (shared library files underneath), my guess is that counter.c is treated as a separ...

13 years ago | 0

| accepted

Answered
How can I mux or demux a bus of vectors?
Try the <http://www.mathworks.com/help/simulink/slref/busselector.html Bus Selector> and <http://www.mathworks.com/help/simulink...

13 years ago | 0

Answered
Creating custom callback functions
If I understand correctly, you're looking for a callback to run when a dialog parameter is changed? You can do that by creating ...

13 years ago | 3

Answered
subsystem with x output bytes
You can place your subsystem inside an <http://www.mathworks.com/help/simulink/ug/enabled-subsystems.html Enabled Subsystem> whi...

13 years ago | 0

| accepted

Answered
How do I call an M-file containing variables and several S-Function files when opening a custom block in simulink?
I think you should be able to put that code into the block's <http://www.mathworks.com/help/simulink/ug/using-callback-functions...

13 years ago | 0

Load more