Activity No. 6: (Sources and Sinks in Simulink)
Activity No. 6: (Sources and Sinks in Simulink)
ECE-2102
Activity No. 6
(Sources and Sinks in Simulink)
Introduction
Simulink is a visual interface for programming designed for intuitive simulation systems.
This provides different ways to numerically solve equations using a graphical user interface
instead of using code. Models provide frames, signals, and context annotation. Blocks are
mathematical functions; inputs and outputs can differ. Signals are lines that link blocks and pass
values between them. These are different types of data that can be classified, such as numbers,
vectors or matrices. Text or image annotations can be added to the model and it is easier for
others to understand design decisions in the model while not being used in the calculations.
Figure above displays the Simulink model's origin and sink snip. It shows a Simulink
split screen with the frames on the workspace and the oscilloscope chart on the right. The design
on the left contains the function blocks Sine Wave and Move connected to Scope and To
Workspace connected to Sine Wave. The graph above shows the Sine Wave on the Scope graph
while the Step function graph in the square is shown below.
Second figure shows MATLAB's workspace. While Simulink is useful for modeling and
visualizing processes including feedback loops, MATLAB still best completes detailed data
analysis and good quality figures generation. Within the Configuration Menu Logging tab, data
logging can be allowed from an oscilloscope. In To Workspace frame, if used in the model, two
variables are generated in the MATLAB workspace every time the model is running: tout, which
is a time phase column vector, and export2workspace, which is a simulation data storage
variable. The simulation data can be from time series, array, or structure type. Accessing
MATLAB data depends on the declared type of variable. The time steps vector was defined after
the simulation command was executed.
In this practice, different blocks were added and basic procedure was taught. In the
Simulink interface, different functions could be treated. Simulink is a valuable modeling method
and we look forward to more complex analysis and simulation.
References