📄 boost.mdl
字号:
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "driver2"
Ports [2, 1]
Position [930, 464, 970, 491]
Orientation "left"
ForegroundColor "[0.000000, 0.501961, 0.000000]"
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "driver2"
Location [-1, 165, 668, 417]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "uc1"
Position [90, 63, 120, 77]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Carr"
Position [85, 28, 115, 42]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Fcn
Name "Fcn"
Position [210, 40, 270, 70]
Expr "u(2)-u(1)"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [155, 34, 185, 76]
ShowName off
Inputs "2"
}
Block {
BlockType Relay
Name "Relay"
Position [295, 40, 325, 70]
ForegroundColor "[1.000000, 0.000000, 0.501961]"
OnSwitchValue "0"
OffSwitchValue "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [405, 19, 435, 51]
Floating off
Location [1, 52, 1153, 863]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0.95"
YMax "1.05"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Outport
Name "G"
Position [360, 48, 390, 62]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Carr"
SrcPort 1
Points [10, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [15, 0]
Branch {
Points [0, -20]
DstBlock "Scope1"
DstPort 1
}
Branch {
Labels [1, 0]
DstBlock "G"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "uc1"
SrcPort 1
Points [0, -5]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "powergui"
Ports []
Position [120, 545, 239, 583]
UserDataPersistent on
UserData "DataTag0"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/powergui"
SourceType "PSB option menu block"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimulationMode "Discrete"
SampleTime "1e-6"
frequency "60"
SPID off
SwTol "0"
Interpol off
x0status "blocks"
echomessages off
HookPort off
FunctionMessages off
EnableUseOfTLC off
RestoreLinks "warning"
frequencyindice "0"
Frange "[0:2:500]"
Ylog off
Xlog on
ShowGrid off
save off
variable "ZData"
ZoomFFT on
StartTime "0.0"
cycles "1"
DisplayStyle "1"
fundamental "60"
FreqAxis off
MaxFrequency "1000"
frequencyindicesteady "1"
RmsSteady "1"
display off
Ts "0"
methode off
}
Line {
LineType "Connection"
Points [560, 365; 80, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "C"
SrcPort LConn1
Points [0, -50]
}
Branch {
ConnectType "SRC_SRC"
Points [-80, 0]
DstBlock "Diode"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "R1"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [65, 0; 0, 85]
DstBlock "V"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "R3"
SrcPort LConn1
Points [0, -20]
Branch {
ConnectType "DEST_SRC"
DstBlock "Diode"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "R4"
DstPort LConn1
}
}
Line {
Name "Ug"
Labels [0, 0; 0, 0; 0, 0; 0, 0; 1, 0]
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Mosfet"
SrcPort 1
Points [0, 10; 175, 0; 0, -205]
DstBlock "Bus\nSelector1"
DstPort 1
}
Line {
SrcBlock "Diode"
SrcPort 1
Points [50, 0; 0, -65]
DstBlock "Bus\nSelector"
DstPort 1
}
Line {
SrcBlock "Multimeter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
Name "Uc"
Labels [0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0]
SrcBlock "Demux"
SrcPort 1
DstBlock "Scope"
DstPort 2
}
Line {
Name "Il"
Labels [0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0]
SrcBlock "Demux"
SrcPort 2
DstBlock "Scope"
DstPort 3
}
Line {
Name "Ir3"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 3
Points [40, 0]
Branch {
Labels [1, 1]
Points [0, -115]
DstBlock "Mean Value"
DstPort 1
}
Branch {
Labels [0, 0; 1, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0]
DstBlock "Scope"
DstPort 4
}
}
Line {
Name "<Diode current>"
Labels [0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0]
SrcBlock "Bus\nSelector"
SrcPort 1
DstBlock "Scope"
DstPort 7
}
Line {
Name "<MOSFET current>"
Labels [0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0; 0, 0]
SrcBlock "Bus\nSelector1"
SrcPort 1
Points [65, 0; 0, -75]
DstBlock "Scope"
DstPort 6
}
Line {
SrcBlock "Mean Value"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
LineType "Connection"
Points [560, 530; -180, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "C"
SrcPort RConn1
Points [0, 30]
}
Branch {
ConnectType "SRC_SRC"
Points [80, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "R1"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [65, 0; 0, -70]
DstBlock "V"
DstPort LConn2
}
}
Branch {
ConnectType "DEST_SRC"
DstBlock "Mosfet"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [-210, 0]
DstBlock "DC Voltage Source"
DstPort LConn1
}
}
Line {
SrcBlock "R2"
SrcPort 1
DstBlock "driver2"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "pi"
Labels [0, 0]
SrcBlock "Discrete\nPID Controller"
SrcPort 1
Points [5, 0]
Branch {
Points [20, 0]
DstBlock "driver2"
DstPort 1
}
Branch {
Labels [1, 0; 0, 0]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "V"
SrcPort 1
Points [10, 0]
Branch {
Points [15, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 145; 15, 0]
Branch {
DstBlock "Mean Value1"
DstPort 1
}
Branch {
Points [25, 0; 0, -305]
DstBlock "Scope1"
DstPort 1
}
}
}
Line {
LineType "Connection"
SrcBlock "L"
SrcPort LConn1
Points [-10, 0]
DstBlock "DC Voltage Source"
DstPort RConn1
}
Line {
Name "Vc1"
Labels [-1, 1]
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Mean Value1"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "driver2"
SrcPort 1
Points [-245, 0]
Branch {
Points [0, -210]
DstBlock "Scope"
DstPort 8
}
Branch {
Points [0, -45]
DstBlock "Mosfet"
DstPort 1
}
}
Line {
LineType "Connection"
SrcBlock "R3"
SrcPort RConn1
DstBlock "Mosfet"
DstPort LConn1
}
Line {
Name "Ir4"
Labels [0, 0; 0, 0; 0, 0]
SrcBlock "Demux"
SrcPort 4
DstBlock "Scope"
DstPort 5
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Discrete\nPID Controller"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "R4"
SrcPort RConn1
DstBlock "L"
DstPort RConn1
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . X ( 8 ( @ % \" $ ! 0 % 0 # $ !X <&]W97)G=6D <W1E861Y<W1A=&4 :6YI='-T871E<P ;&]A9&9L;W< ;'1I=FEE=P >FUE=&5R 9F9T=&]O; <F5P;W)T :'ES=&5R97-I<P ;&EN97!A<F%M #@ # & \" 8 !0 @ $ \"0 . , 8 ( !@ % \" 0 ) X P !@ @ & 4 ( ! D #@ # & \" 8 !0 @ $ \"0 . , 8 ( !@ % \" 0 ) X P !@ @ & 4 ( ! D #@ # & \" 8 !0 @ $ \"0 . , 8 ( !@ % \" 0 ) X P !@ @ & 4 ( ! D #@ # & \" 8 !0 @ $ \"0 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -