📄 njhk_8_8.mdl
字号:
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kpv=@1;Kiv=@2;Ksatv=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5.7645324|0.0582276|0.01"
MaskTabNameString ",,"
Port {
PortNumber 1
Name "V_Pi_Out"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
System {
Name "PFC_V_Control"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "V_PFC_Out"
Position [210, 153, 240, 167]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ZeroOrderHold
Name "20KHz"
Position [295, 145, 330, 175]
SampleTime "5e-5"
}
Block {
BlockType Constant
Name "380/450"
Position [210, 225, 240, 255]
Value "380/450"
}
Block {
BlockType Sum
Name "Add"
Ports [3, 1]
Position [625, 224, 660, 316]
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [805, 223, 830, 287]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "K0v"
Position [515, 145, 545, 175]
Gain "Kpv"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "K1v"
Position [515, 225, 545, 255]
Gain "Kiv"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Ksatv"
Position [515, 285, 545, 315]
Gain "Ksatv"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Saturate
Name "Saturation"
Position [340, 285, 370, 315]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [395, 145, 425, 175]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [430, 285, 460, 315]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [695, 253, 730, 287]
}
Block {
BlockType Outport
Name "V_Pi_Out"
Position [450, 403, 480, 417]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "V_PFC_Out"
SrcPort 1
DstBlock "20KHz"
DstPort 1
}
Line {
SrcBlock "20KHz"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "380/450"
SrcPort 1
Points [165, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "K0v"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "K1v"
DstPort 1
}
}
Line {
SrcBlock "K0v"
SrcPort 1
Points [210, 0; 0, 80]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "K1v"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Ksatv"
SrcPort 1
DstBlock "Add"
DstPort 3
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 80; -180, 0; 0, -80]
DstBlock "Add"
DstPort 2
}
Branch {
DstBlock "Add1"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Ksatv"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "V_Pi_Out"
DstPort 1
}
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [40, 0; 0, 125; -430, 0]
Branch {
Points [-150, 0; 0, -80]
DstBlock "Saturation"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 2
}
}
}
}
Block {
BlockType SubSystem
Name "PWM"
Ports [1, 1]
Position [430, 156, 520, 194]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 1
Name "PWM"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
System {
Name "PWM"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "I_Pi_Out"
Position [360, 198, 390, 212]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "100KHz"
Ports [0, 1]
Position [360, 261, 390, 289]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
rep_seq_t "[0 1e-5]"
rep_seq_y "[0 1]"
}
Block {
BlockType Memory
Name "Memory"
Position [585, 225, 615, 255]
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [495, 222, 525, 253]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [485, 304, 515, 336]
Location [1, 50, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.0001"
YMin "-0.5"
YMax "1.5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Outport
Name "Pulse"
Position [675, 233, 705, 247]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "I_Pi_Out"
SrcPort 1
Points [40, 0; 0, 25]
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "100KHz"
SrcPort 1
Points [-5, 0; 45, 0]
Branch {
Points [0, -30]
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
Points [0, 45]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Memory"
DstPort 1
}
Line {
SrcBlock "Memory"
SrcPort 1
DstBlock "Pulse"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [525, 484, 595, 516]
FunctionName "V_Avg_Cal"
Parameters "Ts,Vthreshld_hi,Vthreshld_lo"
MaskPromptString "Sample_Time|Vthreshld_hi|Vthreshld_lo"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Ts=@1;Vthreshld_hi=@2;Vthreshld_lo=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2e-5|200|20"
MaskTabNameString ",,"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [145, 180, 170, 220]
BackgroundColor "green"
Location [194, 276, 938, 733]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-0.03~-350"
YMax "0.03~350"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [770, 343, 800, 387]
BackgroundColor "green"
Location [119, 229, 842, 640]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-1~-0.5"
YMax "1.75~0.5"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [1000, 118, 1030, 162]
BackgroundColor "green"
Location [595, 315, 1019, 713]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-200000~0"
YMax "25000~500"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [710, 208, 740, 252]
BackgroundColor "green"
Location [6, 56, 591, 712]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-2.5~0"
YMax "47.5~350"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [710, 162, 740, 188]
BackgroundColor "green"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -