📄 synch_1.mdl
字号:
e "[0 -200 0]"
}
Block {
BlockType Outport
Name " "
Position [135, 33, 165, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Timer"
SrcPort 1
DstBlock " "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Measure"
Ports [0, 2, 0, 0, 0, 4, 3]
Position [690, 84, 775, 246]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Measure"
Location [70, 179, 614, 493]
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 Reference
Name "Current Measurement1"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [190, 15, 205, 35]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement2"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [190, 55, 205, 75]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Current Measurement3"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [190, 95, 205, 115]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [365, 136, 370, 174]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [365, 211, 370, 249]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Ports [0, 1, 0, 0, 0, 2]
Position [175, 189, 195, 211]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Ports [0, 1, 0, 0, 0, 2]
Position [175, 219, 195, 241]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement3"
Ports [0, 1, 0, 0, 0, 2]
Position [175, 249, 195, 271]
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType PMIOPort
Name "In1"
Position [45, 18, 75, 32]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "In2"
Position [45, 58, 75, 72]
Port "2"
Side "Left"
}
Block {
BlockType PMIOPort
Name "In3"
Position [45, 98, 75, 112]
Port "3"
Side "Left"
}
Block {
BlockType PMIOPort
Name "gnd"
Position [50, 278, 80, 292]
Port "4"
Side "Left"
}
Block {
BlockType PMIOPort
Name "Out1"
Position [350, 23, 380, 37]
Orientation "left"
Port "5"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Out2"
Position [350, 63, 380, 77]
Orientation "left"
Port "6"
Side "Right"
}
Block {
BlockType PMIOPort
Name "Out3"
Position [345, 103, 375, 117]
Orientation "left"
Port "7"
Side "Right"
}
Block {
BlockType Outport
Name "v_abc"
Position [470, 223, 500, 237]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "i_abc"
Position [460, 148, 490, 162]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "v_abc"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "i_abc"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement1"
SrcPort 1
Points [75, 0; 0, 20]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Voltage Measurement2"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Voltage Measurement3"
SrcPort 1
Points [75, 0; 0, -20]
DstBlock "Mux1"
DstPort 3
}
Line {
LineType "Connection"
SrcBlock "In1"
SrcPort RConn1
Points [55, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Current Measurement1"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 170]
DstBlock "Voltage Measurement1"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "In2"
SrcPort RConn1
Points [45, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Current Measurement2"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 160]
DstBlock "Voltage Measurement2"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "In3"
SrcPort RConn1
Points [35, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Current Measurement3"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 150]
DstBlock "Voltage Measurement3"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Current Measurement1"
SrcPort RConn1
DstBlock "Out1"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Current Measurement2"
SrcPort RConn1
DstBlock "Out2"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Current Measurement3"
SrcPort RConn1
DstBlock "Out3"
DstPort RConn1
}
Line {
SrcBlock "Current Measurement1"
SrcPort 1
Points [90, 0; 0, 125]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Current Measurement2"
SrcPort 1
Points [80, 0; 0, 95]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Current Measurement3"
SrcPort 1
Points [70, 0; 0, 65]
DstBlock "Mux"
DstPort 3
}
Line {
LineType "Connection"
SrcBlock "gnd"
SrcPort RConn1
Points [50, 0; 0, -20]
Branch {
ConnectType "DEST_SRC"
DstBlock "Voltage Measurement3"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [0, -30]
Branch {
ConnectType "DEST_SRC"
DstBlock "Voltage Measurement2"
DstPort LConn2
}
Branch {
ConnectType "DEST_SRC"
Points [0, -30]
DstBlock "Voltage Measurement1"
DstPort LConn2
}
}
}
}
}
Block {
BlockType SubSystem
Name "Mechanical Input\nSelector"
Ports [2, 1]
Position [875, 519, 1005, 561]
NamePlacement "alternate"
FontName "Arial"
FontSize 12
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Mechanical Input\nSelector"
Location [0, 82, 1012, 744]
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 "speed"
Position [50, 33, 80, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "input"
Position [50, 113, 80, 127]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutSc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -