Questions tagged [simulink]

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems.

Simulink® is an environment developed by The MathWorks for multidomain simulation and Model-Based Design for dynamic and embedded systems. It provides an interactive graphical environment and a customizable set of block libraries that let you design, simulate, implement, and test a variety of time-varying systems, including communications, controls, signal processing, video processing, and image processing.

Some useful links:

2638 questions
0
votes
1 answer

How to navigate back programmatically in Simulink

Most of Simulink actions is backed-up with a command-line code that does the same. I'm looking for a piece of code that throws me back to the previous block, exactly as the backward arrow. Any idea?
NoamG
  • 137
  • 9
0
votes
1 answer

Access triggered subsystem parameters in simulink

I have a simulink block with a triggered subsystem. Inside the subsystem I have a MATLAB System block. I want to modify the parameters of this MATLAB System block programmatically. For this I tryed to access the MATLAB System block…
Bruno Morabito
  • 191
  • 1
  • 4
  • 16
0
votes
0 answers

Simulink model in a while loop

i want to get values for a simulink model. The aim is to implement the simulink model in a while loop in a matlab script The simulation has to run 10s. The output of the simulink model is a signal value, which shouldnt exceed the value 1. The while…
Perilun
  • 53
  • 2
  • 6
0
votes
1 answer

I can't use Spectrum Analyzer after a Transf Fun

I'm finding problems to use Spectrum Analyzer after a Transf Fcn block in simulink. I need to measure the response frequency after and before the blok Transfer Fcn because I need to know with my filter is working in the right way. So any…
SrnLord
  • 111
  • 4
0
votes
1 answer

Simulink Coder Error : Unable to find build success text "### Successfully generated all binary outputs." in build log

I am trying to generate code for a sample model which implements concurrent execution. It is an example given by Mathworks. When trying to build the model through the "Profiler Report" in concurrent execution window or by using "rtwbuild(mdl)", I am…
0
votes
1 answer

.m Script for moving multiple .c and .h file from diff folder to singlefolder

How do I move auto generated multiple .c and .h file from different folder to the single folder using .m scripting in MATLAB/Simulink?
0
votes
1 answer

Calling a function from stateflow

I am trying to call a function (can be matlab function or a simlink function) from a stateflow in one subsystem, the function must be located in another subsystem as shown below: enter image description here The first subsystem will have a stateflow…
Jack
  • 1
  • 3
0
votes
2 answers

System call from Simulink with external hardware (Raspberry PI)

I want to make a system call out of a Matlab Simulink model running on external hardware. In my case I want to switch the original Raspberry Pi Touch Display (7") off and an. I tried using a Matlab function with a Matlab "system" command but it…
uwjhn
  • 25
  • 1
  • 8
0
votes
0 answers

MATLAB: Plotting ScopeData on Workspace

I configured the data from Simulink to be saved as Structure with time on workspace, but I'm getting an error when I try to plot the variable. plot(X.time, X.signals.values) X is how I named the scope data. And this is the error I get Error using…
emic
  • 51
  • 8
0
votes
1 answer

Matlab s2p file

I'm trying to build a s2p file in simulink using the block "To File" but gives me an odd file with random characters like fs%($&%%(& Which looks like when I try to open a jpeg file with block note. I'm trying a simple RF layout with a single…
Shika93
  • 515
  • 3
  • 20
0
votes
1 answer

Embedding my matlab m functions in Simulink

We have developed a set of matlab functions that have been tested (basically event detectors whose inputs are bio signals, thus time series). We now want to do Simulink simulation using« these m files whose input will be the mentioned bio-signals …
0
votes
0 answers

Simulink product block output is attenuated, why?

I am using the Simulink's product block to mix a carrier with a wide-band signal. The output of the product block is as expected, but with an attenuation, why is that? The attenuation from my tests is about 5-10 dB. Figures of system and spectrum…
tompak
  • 1
  • 1
0
votes
1 answer

When to use "to workspace" block vs "outport" block

I can use both blocks for getting output from simulink to matlab, but if there are two of them there should be difference in the way they are used but I can not figure it out.
0
votes
1 answer

"Treat as atomic " effect on generated code

What impact will it cause on the generated code, if a subsystem block is marked "Treat as atomic". Even with option as unchecked, there is no use of virtual keyword in the generated code. Please explain.
0
votes
0 answers

Series block connection without copying blocks

I have a model with n blocks connected in series (And last (nth) block's outputs are connected to first block inputs). Only difference among them is the parameter's value (first array element in matlab is value for first block's parameter, second…
1 2 3
99
100