Project 1

- Power_Demand is the input (Repeating Sequence Stair)
- Battery_Power,FC_Power and FC_Operating_State are the outputs(display)
As per the flowchart the model is designed
The function Blocks used are as follows :
- Inport
- Outport
- Repeating Sequence Stair
- Subsytem
- Switch
- Compare to constant
- Constant
- Add
- Goto & From
- Display

Creating a subsytem

Case_1 :
When Power_Demand ~< Min_FC_Power the output is delivered as FC_Power and FC_Operating_State is 1 which indicates its running and when Power_Demand ~> Max_FC_Power the output is delivered as Fuel_Power

Case_2 :
When Power_Demand < Min_FC_Power the output is delivered as Battery_Power and FC_Operating_State is 0 which indicates it is in standby mode and when Power_Demand > Max_FC_Power the output is delivered as Battery_Power

Both the cases are loaded as .mat file

Note : All are files are attached as zip file