📄 triblebgesuperposition.mdl
字号:
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
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 MinMax
Function "min"
Inputs "1"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Relay
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
OutputDataTypeScalingMode "All ports same datatype"
OutDataType "sfix(16)"
OutScaling "2^0"
ConRadixGroup "Use specified scaling"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "triblebgesuperposition"
Location [2, 82, 1270, 909]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "yellow"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "1 kW\n0.5 kvar\n@ 208V"
Ports [0, 0, 0, 0, 0, 3]
Position [634, 320, 686, 385]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Loa"
"d"
SourceType "Three-Phase Parallel RLC Load"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "A|B|C"
Configuration "Y (grounded)"
NominalVoltage "208"
NominalFrequency "60"
ActivePower "1000"
InductivePower "0"
CapacitivePower "500"
Measurements "None"
}
Block {
BlockType Reference
Name "208V /208V 1kVA\nTransformer"
Ports [0, 0, 0, 0, 0, 3, 3]
Position [545, 131, 605, 189]
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Tw"
"o Windings)"
SourceType "Three-Phase Transformer (Two Windings)"
ShowPortLabels on
NominalPower "[ 1000 , 50 ]"
Winding1Connection "Delta (D1)"
Winding1 "[ 208 , 0.002 , 0.04 ]"
Winding2Connection "Yg"
Winding2 "[ 208 , 0.002 , 0.04 ]"
SetSaturation off
Rm "200"
Lm "200"
Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
Hysteresis off
DataFile "'hysteresis'"
SetInitialFlux off
InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
Measurements "None"
TransfoNumber "0"
}
Block {
BlockType Logic
Name "BL1"
Ports [1, 1]
Position [880, 499, 910, 521]
NamePlacement "alternate"
ShowName off
Operator "NOT"
Inputs "1"
}
Block {
BlockType Logic
Name "BL2"
Ports [1, 1]
Position [880, 564, 910, 586]
NamePlacement "alternate"
ShowName off
Operator "NOT"
Inputs "1"
}
Block {
BlockType Logic
Name "BL3"
Ports [1, 1]
Position [880, 634, 910, 656]
NamePlacement "alternate"
ShowName off
Operator "NOT"
Inputs "1"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion"
Position [1145, 502, 1190, 548]
BackgroundColor "cyan"
NamePlacement "alternate"
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion1"
Position [810, 465, 855, 485]
BackgroundColor "cyan"
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion3"
Position [810, 540, 855, 560]
BackgroundColor "cyan"
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType DataTypeConversion
Name "Data Type \nConversion4"
Position [810, 600, 855, 620]
BackgroundColor "cyan"
ShowName off
OutDataTypeMode "boolean"
}
Block {
BlockType MinMax
Name "MinMax"
Ports [1, 1]
Position [290, 650, 320, 680]
Function "min"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [910, 244, 915, 306]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [260, 634, 265, 696]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [6, 1]
Position [1095, 458, 1100, 592]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [175, 443, 205, 487]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [175, 518, 205, 562]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [175, 578, 205, 622]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Relay
Name "Relay1"
Position [710, 460, 740, 490]
OnSwitchValue "0.001"
OffSwitchValue "-0.001"
}
Block {
BlockType Relay
Name "Relay2"
Position [715, 535, 745, 565]
OnSwitchValue "0.001"
OffSwitchValue "-0.001"
}
Block {
BlockType Relay
Name "Relay3"
Position [715, 595, 745, 625]
OnSwitchValue "0.001"
OffSwitchValue "-0.001"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [970, 250, 1005, 300]
BackgroundColor "green"
Location [5, 56, 1285, 929]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "2"
YMin "-500"
YMax "500"
SaveToWorkspace on
SaveName "psb3phPWM1_str"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope2"
Ports [6]
Position [1205, 642, 1240, 733]
BackgroundColor "green"
Location [5, 56, 1285, 930]
Open off
NumInputPorts "6"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
TimeRange "0.35"
YMin "-2~-2~-2~-2~-2~-2"
YMax "2~2~2~2~2~2"
SaveToWorkspace on
SaveName "psb3phPWM1_str1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [805, 163, 840, 212]
BackgroundColor "green"
Location [5, 56, 1285, 929]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "2"
YMin "-500~-5.85938"
YMax "500~56.1198"
SaveToWorkspace on
SaveName "psb3phPWM1_str2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "500000"
}
Block {
BlockType Scope
Name "Scope4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -