- First Order Differential Equation
- Solving Mathematical Equation
- MATLAB Simulink - Script
- MATLAB Simulink - Export Data
- MATLAB Simulink - For Loop
- MATLAB Simulink - Create Subsystem
- MATLAB Simulink - Function
- MATLAB Simulink - Sinewave
- MATLAB Simulink - Logic Gates Model
- Build Model & Apply If-else Logic
- MATLAB Simulink - Mathematical Library
- MATLAB Simulink - Adding Delay To Signals
- MATLAB Simulink - Signals Processing
- MATLAB Simulink - Build & Simulate Model
- MATLAB Simulink - Lines
- MATLAB Simulink - Blocks
- MATLAB Simulink - Starting Simulink
- MATLAB Simulink - Environment Setup
- MATLAB Simulink - Introduction
- MATLAB Simulink - Home
MATLAB Simulink Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MATLAB Simupnk - Lines
In the previous chapter, we learnt about the different types of blocks which are available with Simupnk pbrary. In this chapter, we are going to understand about pnes.
Lines are used to connect the blocks with an arrow. Each block will have its own input and output connector. The communication between the blocks will take place with the help of pnes.
Let us understand the same with an example. Select a blank model from Simupnk page as shown below −
It will open a blank model workspace as shown below −
Cpck on Simupnk Library browser to drag some blocks in the model workspace.
Consider that in the model, we want to add two given numbers. So let us pick the Add block, the display block and the constant block.
The constant block has one output connector, the Add block has two input connectors and the display block has one input connector respectively. You can drag the pnk from one output to another input as shown below.
Here, we have two constants with values 10 and 20. They are connected to the add block with pnes. The add block is connected to display with a pne.
When the pnes are connected, the display is as follows −
Now cpck on Run to see the result in the display block. It will add 10 + 20 to give the result as 30 in the display block.
Advertisements