📄 singleparallelapproach.mdl
字号:
FramePeriod "inf"
}
Block {
BlockType Lookup
InputValues "[-4:5]"
Table " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as input"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)"
LogicDataType "uint(8)"
OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
OutDataTypeStr "Inherit: Same as input"
LockScale off
RndMeth "Floor"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "singleparallelapproach"
Location [2, 74, 1254, 740]
Open on
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"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AC Voltage Source"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [128, 260, 152, 295]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Electrical\nSources/AC Voltage Source"
SourceType "AC Voltage Source"
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"
Amplitude "120*1.414"
Phase "0"
Frequency "60"
SampleTime "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Active & Reactive\nPower"
Ports [2, 1]
Position [225, 698, 275, 747]
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
SourceBlock "powerlib_extras/Measurements/Active & Reactive\nPower"
SourceType "Active & Reactive Power "
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"
f1 "60"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [295, 897, 325, 928]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [610, 877, 640, 908]
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [360, 1122, 390, 1153]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [785, 867, 815, 898]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add4"
Ports [2, 1]
Position [1355, 1107, 1385, 1138]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add5"
Ports [2, 1]
Position [1395, 727, 1425, 758]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add6"
Ports [2, 1]
Position [1570, 727, 1600, 758]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [220, 875, 250, 905]
Value "120*sqrt(2)"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [245, 1000, 275, 1030]
Value "120/48"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant2"
Position [1260, 960, 1290, 990]
Value "120/48"
VectorParams1D off
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant3"
Position [1285, 770, 1315, 800]
Value "48"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Current Measurement"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [475, 43, 500, 67]
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
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 "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Diode"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [245, 135, 285, 190]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.001 "
Lon "0"
Vf "0.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType Reference
Name "Diode1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [255, 360, 295, 415]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.001 "
Lon "0"
Vf "0.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType Reference
Name "Diode2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [420, 140, 460, 195]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.001 "
Lon "0"
Vf "0.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType Reference
Name "Diode3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [1030, 95, 1085, 135]
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.001 "
Lon "0"
Vf "0.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements off
}
Block {
BlockType Reference
Name "Diode4"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [420, 365, 460, 420]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -