📄 mli2niveauxhysteresis.mdl
字号:
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [295, 45, 325, 65]
ShowName off
Operator "NOT"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [290, 95, 320, 115]
ShowName off
Operator "NOT"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [1, 1]
Position [290, 145, 320, 165]
ShowName off
Operator "NOT"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [400, 15, 405, 170]
ShowName off
Inputs "6"
}
Block {
BlockType Relay
Name "Relay"
Position [200, 17, 220, 43]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Relay
Name "Relay1"
Position [200, 67, 220, 93]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Relay
Name "Relay2"
Position [200, 117, 220, 143]
ShowName off
OnSwitchValue "h/2"
OffSwitchValue "-h/2"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [160, 19, 180, 41]
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [160, 69, 180, 91]
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [160, 119, 180, 141]
ShowName off
Inputs "-+"
}
Block {
BlockType Outport
Name "Pulses"
Position [425, 88, 455, 102]
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [25, 0; 0, 35]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Pulses"
DstPort 1
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Relay2"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [15, 0; 0, 70]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [50, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [45, 0; 0, -50]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [35, 0; 0, -85]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Iabc*"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Data Type \nConversion"
DstPort 1
}
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Data Type \nConversion4"
DstPort 1
}
}
Line {
SrcBlock "Relay2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Mux"
DstPort 5
}
Branch {
Points [0, 25]
DstBlock "Data Type \nConversion5"
DstPort 1
}
}
Line {
SrcBlock "Data Type \nConversion"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type \nConversion1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Data Type \nConversion2"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion2"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Data Type \nConversion3"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion3"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "Data Type \nConversion4"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion5"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [435, 396, 440, 434]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [410, 481, 415, 519]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Gain
Name "Gain"
Position [120, 248, 150, 272]
ShowName off
Gain "1/75"
}
Block {
BlockType Goto
Name "Goto3"
Position [190, 86, 245, 104]
ForegroundColor "darkGreen"
ShowName off
GotoTag "Vref"
TagVisibility "global"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [555, 385, 560, 540]
ShowName off
Inputs "2"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [625, 398, 670, 452]
BackgroundColor "green"
DropShadow on
Location [815, 267, 1308, 649]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.1"
YMin "-40"
YMax "140"
SaveToWorkspace on
SaveName "psbconverter_str2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleInput on
SampleTime "1/60/512"
}
Block {
BlockType Outport
Name "PULS"
Position [755, 278, 785, 292]
}
Line {
SrcBlock "Constant5"
SrcPort 1
Points [15, 0]
Branch {
Points [15, 0]
DstBlock "\nRegulation tension"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Goto3"
DstPort 1
}
}
Line {
SrcBlock "Vdc"
SrcPort 1
Points [50, 0]
DstBlock "\nRegulation tension"
DstPort 2
}
Line {
SrcBlock "\nRegulation tension"
SrcPort 1
Points [0, -10; 15, 0]
Branch {
Points [75, 0; 0, 25]
DstBlock "Current Regulator"
DstPort 1
}
Branch {
Points [0, 290]
DstBlock "Demux1"
DstPort 1
}
}
Line {
SrcBlock "Iiabc"
SrcPort 1
Points [30, 0]
Branch {
Points [195, 0]
Branch {
Points [40, 0; 0, -50]
DstBlock "Current Regulator"
DstPort 2
}
Branch {
Points [0, 100]
DstBlock "Demux"
DstPort 1
}
}
Branch {
Points [5, 0; 0, 35; -120, 0]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Current Regulator"
SrcPort 1
Points [60, 0; 0, 35]
DstBlock "PULS"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "\nRegulation tension"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [60, 0; 0, 10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [20, 0; 0, -40]
DstBlock "Scope3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "\nCircuit 閘ectrique"
Ports [1, 2]
Position [65, 162, 200, 418]
BackgroundColor "cyan"
NamePlacement "alternate"
FontName "Arial"
FontSize 14
FontWeight "bold"
TreatAsAtomicUnit off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "\nCircuit 閘ectrique"
Location [33, 166, 1357, 908]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "pulses"
Position [665, 188, 695, 202]
ForegroundColor "red"
}
Block {
BlockType Reference
Name "\n\n"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [98, 320, 122, 355]
Orientation "up"
SourceBlock "powerlib2/Electrical\nSources/AC Voltage So"
"urce"
SourceType "AC Voltage Source"
A "230*sqrt(2)"
P "120"
F "50"
stime "0"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "\n\n\n"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [1025, 163, 1050, 187]
ForegroundColor "blue"
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Complex"
PSBOutputType "0"
PSBequivalent "0"
Port {
PortNumber 1
Name "Vd"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "\n\n\n\n\n"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [710, 248, 735, 272]
ForegroundColor "blue"
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PhasorSimulation off
OutputType "Complex"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "\n\n\n\n\n1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -