Réponse apportée
.net Using a complex Simulink model as a realistic real time simulation
You can generate the shared library (dll) from your model. For that you need two more products *Simulink Coder (Real time worksh...

plus de 13 ans il y a | 1

| A accepté

A soumis


Script to create VCD file from simulink data
This scrip is used to generate a VCD file for the simulation data generated by simulink.

plus de 13 ans il y a | 2 téléchargements |

3.5 / 5
Thumbnail

Réponse apportée
Using Workspace data in Matlab function block - SIMULINK
Read the loaded workspace variables in *Constant blocks* and pass theses blocks as input to the matlab function block.

plus de 13 ans il y a | 3

Réponse apportée
What is the purpose of Code Generation Template (CGT) files?
CGT mainly used to add the custom comments (other than the generated comments) in the generated files. For details see <http:...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
background for design gui
In the OpeningFcn callback of your GUI add below code BkImage = importdata('backgnd.jpg'); %Read the image file axes(han...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to refresh library blocks programmatically?
AFAIK, there no specific command for Ctrk+K (Referesh model block). But, library block can also be refreshed using *update diag...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
How to go to the next line in case of using 'system' command ?
Try >> system('YourCommand &')

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
tlc file for level 2 s function
You can find some simple example of in-lining level 2 s-function here <http://www.mathworks.com/help/toolbox/rtw/tlc/f34125.h...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
What do you mean by sampling time? How will it be seen in the generated code?
In brief, sample time for the model is the time step at which model will be executed. Suppose for Fixed step discrete model, sam...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
how to get values from mat - file
This function saves variable in mat file function function1 x = 100; y = 200; % Save variable x ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
String parsing and array of strings
Inpt = 'target$345$678$78$780$target'; Str = strrep(Inpt,'target',''); Dcell = textscan(str(2:end),'%f','delimiter','$'...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Convert a MEX-function to an S-function
It is not at all possible to convert a .mex file into S-function. Let me clarify something... * *S-Function* is a C/C++ (a...

presque 14 ans il y a | 3

| A accepté

Réponse apportée
Tool for showing difference b/w two simulink model
There are many commercial tools are available in the market which compares the models and highlights the changes graphically. ...

presque 14 ans il y a | 2

Réponse apportée
ADSP-21160N Embedded Coder Support
Developing custom target for simuink requires lots of effort. You need to create s-functions blocks, write TLCs and make GUIs. ...

presque 14 ans il y a | 0

Réponse apportée
From workspace block error
Vaiables declared in a fucntion remains within the function scope, while by default simulink resolve the parameters from base wo...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How to initialize the memory block by external values (or tag)
It is not possible to change the source of initial values for data store memory block. What you can do only is, instead of enter...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
how to compare for just one time in simulink
Put your comparision logic in enabled subsystem and enable the subsystem only on first sample time. There can be many ways o...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
How to feed discrete i/p to simulink model
Possible with any of the following blocks Sources\From Workspace Sources\Repeating Sequence Sources\Repeating Sta...

presque 14 ans il y a | 3

| A accepté

Réponse apportée
to store data array while running a simulation in in real time.
Have you tried *Unit Delay* block ? *[Edited 16 May,2012]* Try using *Discrete/Tapped Delay* block. It returns the multipl...

presque 14 ans il y a | 0

Réponse apportée
Multiple copies of the same embedded subfunction in simulink
One way is to pass the buffer & ctr on each function call and also return their updated values each time. Something like this ...

presque 14 ans il y a | 0

Réponse apportée
Add a mask to an Embedded Matlab block
I don't have access to R2012a. But in R2007a, it is not possible directly to mask the embedded matlab block, but you can put ...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
MSP430 programming with Stateflow
*Whether there is a possibility to write directly to memory or to I / O ports ?* Set the signal's storage class in simulink t...

presque 14 ans il y a | 2

| A accepté

Réponse apportée
How to see if grid is on?
get(AxesHandle,'XGrid') get(AxesHandle,'YGrid')

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Sending PID gain values from Simulink PID block to Matlab workspace
You can retrieve the gain values of PID block in your m-script. See below piece of code. % Get the values from block P_...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Getting the current simulation time in Simulink
Go through below links to see below, how to share a variable globally in different *Embedded matlab function* blocks. <http:/...

presque 14 ans il y a | 2

Réponse apportée
HELP! passing variable from one callback to another callback in GUI
Global variables need to be declare *global* in each function where it is used. Add below declartion line in your retrieve_Ca...

presque 14 ans il y a | 1

Réponse apportée
Paraller states in stateflow.
In stateflow, all the parallel states are executed at every sample time in a sequence decided by their priority number. In yo...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Generating code for a single element array
You can set the Storage class of signal *ImportedExternPointer*. In your legacy code, write the actual definition of this pointe...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
Get results from simulink and plot in GUI
There are two way to get simulink simulation result outside the simulink. *1. Using To WorkSpace block:* Save the simulati...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
How to use User Defined Function in Simulink ?
You can place yor MATLAB code into *User-Defined functions/Embedded MATLAB Function* function block. Go through its help doc to...

presque 14 ans il y a | 1

Charger plus