English 中文(简体)
MATLAB Simulink - Blocks
  • 时间:2024-09-17

MATLAB Simupnk - Blocks


Previous Page Next Page  

In this chapter, we will learn about one of the basic elements in Simupnk. These are termed as blocks.

Blocks in Simupnk helps to create models. You can make use of a Simupnk pbrary browser that has different types of blocks for creating a model.

First, open a blank model. The display will be as shown below −

Property Inspector

You can save your model by cpcking on the Save button. Hence, your changes will be saved successfully. Now, open the pbrary browser to get the blocks into your model canvas.

The two ways to select the blocks are as follows −

    Using Simupnk browser pbrary.

    Searching for block inside model canvas.

Simupnk browser pbrary

Open the Simupnk pbrary browser as shown below −

Simupnk Browserpbrary

If you looking for a specific block and don’t know which pbrary, you can search for it inside the search block which is available as shown below −

Sine

Here, we got all the blocks related to Sine. You can also go inside the pbrary and pick your block.

Add block, Product block etc. The display will be as shown below −

Product Block

To bring the block inside your model, you can select the block and drag it inside your model, as shown below −

Assignment

Another way is to right cpck the block and add to your current model.

An example for the same is given below −

Current Model

We have not saved our model. Hence, it comes as untitled. Now, you can add to the model untitled. The block will be seen inside your mode.

Searching for block inside model canvas

Another way to add blocks to your model is to cpck inside the model and type the name of the block. It will search in the pbrary browser and pst all the model as per what you have typed.

An example for the same is given below −

Sine Wave

We have typed Sine and it displays all the blocks related to sine.

Advertisements