ENGINEERING PROJECT

Matlab/Simulink Program

1:56 AM

Function of Block: Sum (2)

Posted by Shahrul





Continue...

  • Sample time (-1 for inherited)
Specify the time interval between samples. To inherit the sample time, set this parameter to -1.


  • The Signal Data Types pane of the Sum block dialog appears as follows:


  • Require all inputs to have same data type
Select this parameter to require that all inputs must have the same data type.


  • Output data type mode
Specify the output data type and scaling to be the same as the first input, or inherit the data type and scaling from an internal rule or by backpropagation. You can also choose a built-in data type from the drop-down list. Lastly, if you choose Specify via dialog, the Output data type, Output scaling value, and Lock output scaling against changes by the autoscaling tool parameters become visible.


  • Output data type
Specify any data type, including fixed-point data types. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter.


  • Output scaling value
Set the output scaling using binary point-only or [Slope Bias] scaling. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter.Lock output scaling against changes by the autoscaling tool.

Select to lock scaling of outputs. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter. Round integer calculations toward. Select the rounding mode for fixed-point operations.


  • Saturate on integer overflow
Select to have overflows saturate


  • Characteristic


11:03 PM

Function of Block: Sum (1)

Posted by Shahrul




Figure below show the sum block..


  • Sum, Add, Subtract, Sum of Elements
Add or subtract inputs


  • Library
Math Operations


  • Description

The Sum block performs addition or subtraction on its inputs. This block can add or subtract scalar, vector, or matrix inputs. It can also collapse the elements of a single input vector.

You specify the operations of the block with the List of signs parameter. Plus (+), minus (-), and spacer (|) characters indicate the operations to be performed on the inputs:

If there are two or more inputs, then the number of + and - characters must equal the number of inputs. For example, "+-+" requires three inputs and configures the block to subtract the second (middle) input from the first (top) input, and then add the third (bottom) input.

All nonscalar inputs must have the same dimensions. Scalar inputs will be expanded to have the same dimensions as the other inputs. A spacer character creates extra space between ports on the block's icon.

If only addition of all inputs is required, then a numeric parameter value equal to the number of inputs can be supplied instead of "+"characters. If only one vector is input, then a single "+" or "-" will collapse the vector using the specified operation.

The Sum block first converts the input data type(s) to the output data type using the specified rounding and overflow modes, and then performs the specified operations.


  • Data Type Support
The Sum block accepts real or complex signals of any data type supported by Simulink, including fixed-point data types. The inputs may be of different data types unless you select the Require all inputs to have same data type parameter.

  • Parameters and Dialog Box
The Main pane of the Sum block dialog appears as follows:



  • Icon shape
Designate the icon shape of the block.


  • List of signs
Enter as many plus (+) and minus (-) characters as there are inputs. Addition is the default operation, so if you only want to add the inputs, enter the number of input ports. For a single vector input, "+" or "-" will collapse the vector using the specified operation.

You can manipulate the positions of the input ports on the block by inserting spacers (|) between the signs in the List of signs parameter. For example, "++|--" creates an extra space between the second and third input ports.

Thank You..

11:17 PM

Function Of Block: Constant

Posted by Shahrul



As u can see in the figure below.. The constant of the block is Vt..


  • Constant:
Generate a constant value

  • Library
Sources

  • Description
The Constant block generates a real or complex constant value. The block generates scalar (one-element array), vector (1-D array), or matrix (2-D array) output, depending on the dimensionality of the Constant value parameter and the setting of the Interpret vector parameters as 1-D parameter. Also, the block can generate either a sample-based or frame-based signal, depending on the setting of the Sampling mode parameter.

The output of the block has the same dimensions and elements as the Constant value parameter. If you specify a vector for this parameter, and you want the block to interpret it as a vector (i.e., a 1-D array), select the Interpret vector parameters as 1-D parameter; otherwise, the block treats the Constant value parameter as a matrix (i.e., a 2-D array).

  • Data Type Support
By default, the Constant block outputs a signal whose data type and complexity are the same as that of the block's Constant value parameter. However, you can specify the output to be any data type supported by Simulink, including fixed-point data types.

  • Parameters and Dialog Box
The Main pane of the Constant block dialog appears as follows:

Note: Opening this dialog box causes a running simulation to pause..


  • Constant value

Specify the constant value output by the block. You can enter any MATLAB expression in this field, including the Boolean keywords, true or false, that evaluates to a matrix value. The Constant value parameter is converted from its data type to the specified output data type offline using round-to-nearest and saturation.

  • Interpret vector parameters as 1-D

If you select this check box, the Constant block outputs a vector of length N if the Constant value parameter evaluates to an N-element row or column vector, i.e., a matrix of dimension 1xN or Nx1. If you uncheck this option, you can interact with the Sampling mode parameter. See Determining the Output Dimensions of Source Blocks.

  • Sample time

Specify the interval between times that the Constant block's output can change during simulation (e.g., as a result of tuning its Constant value parameter). The default sample time is inf, i.e., the block's output can never change. This setting speeds simulation and generated code by avoiding the need to recompute the block's output.

  • Sampling mode

Specify whether the output signal is Sample based or Frame based. For more information about these types of signals, see Sample-Based Signals and Frame-Based Signals in the Signal Processing Blockset User's Guide.

Note: To generate frame-based signals, you must have the Signal Processing Blockset installed.

The Signal Data Types pane of the Constant block dialog appears as follows:


  • Output data type mode

Specify how the data type of the output is designated. The data type can be inherited through backpropagation, or can be designated in the Constant value parameter, for example int8(29). You can also choose a built-in data type from the list. If you choose Specify via dialog, the following parameters become visible.

  • Output data type

Specify any data type, including fixed-point data types. This parameter is only visible you select Specify via dialog for the Output data type mode parameter.

  • Output scaling mode

Specify how the scaling of the output is designated. The output can be automatically scaled to maintain best vector-wise precision without overflow, or you can choose to specify the scaling in the dialog via the Output scaling value parameter. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter.

  • Output scaling value

Set the output scaling using binary point-only or [Slope Bias] scaling. This parameter is only visible if you select Specify via dialog for the Output data type mode parameter and Use specified scaling for the Output Scaling Mode parameter.

Characteristics


Thank you..

Electric machines play an important role in industry as well as our day to day life. They are used to generate electrical power in power plants and provide mechanical work in industries. They are also an indispensable part of our daily lives. Electric machines are very important pieces of equipment in our everyday lives. The DC machine is considered to be basic electric machines.

The aim of this final year project is to introduce students to the modeling of power components and to use computer simulation as a tool for conducting transient and control studies. Simulation can be very helpful in gaining insights to the dynamic behavior and interactions that are often not readily apparent from reading theory. Simulation is often chosen by engineers to study transient and control performance or to test conceptual designs.

MATLAB/SIMULINK is used because of the short learning curve that most students require to start using it, its wide distribution, and its general purpose of nature. This will demonstrate the advantages of using MATLAB for analyzing power system steady-state behavior and its capabilities for simulating transients in power systems and power electronics, including control system dynamic behavior