📄 untitled23.mdl
字号:
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 Reference
}
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 Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
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 Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross 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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
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"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "untitled23"
Location [6, 75, 1018, 720]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "ASR"
Ports [2, 1]
Position [505, 560, 545, 620]
Orientation "left"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "ASR"
Location [2, 75, 1014, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "w"
Position [395, 278, 425, 292]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "W*"
Position [395, 308, 425, 322]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "PID Controller1"
Ports [1, 1]
Position [525, 285, 555, 315]
SourceBlock "simulink_extras/Additional\nLinear/PID Cont"
"roller"
SourceType "PID Controller"
ShowPortLabels on
P "1"
I "1"
D "0"
}
Block {
BlockType Saturate
Name "Saturation"
Position [600, 285, 630, 315]
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [450, 272, 470, 328]
ShowName off
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Te*"
Position [655, 293, 685, 307]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "PID Controller1"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID Controller1"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Te*"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
Points [0, 15]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "W*"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Asynchronous Machine\nSI Units1"
Ports [1, 1, 0, 0, 0, 3, 3]
Position [640, 131, 720, 219]
SourceBlock "powerlib/Machines/Asynchronous Machine\nSI Unit"
"s"
SourceType "Asynchronous Machine"
ShowPortLabels on
PresetModel "No"
ShowDetailedParameters on
RotorType "Wound"
ReferenceFrame "Rotor"
NominalParameters "[1500 380 50]"
Stator "[4.1 0.5839]"
Rotor "[2.5 0.5839]"
Lm "0.510"
Mechanical "[0.04 0 2]"
InitialConditions "[ 1,0 0,0,0 0,0,0 ] "
Units "1"
LoadFlowParameters "0"
}
Block {
BlockType Constant
Name "Constant"
Position [670, 590, 700, 620]
Orientation "left"
NamePlacement "alternate"
Value "100"
}
Block {
BlockType Constant
Name "Constant1"
Position [390, 485, 420, 515]
Orientation "left"
NamePlacement "alternate"
Value "100"
}
Block {
BlockType Reference
Name "DC Voltage Source1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [360, 140, 380, 175]
Orientation "up"
NamePlacement "alternate"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
ShowPortLabels on
Amplitude "380"
Measurements "Voltage"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [630, 361, 635, 399]
Orientation "left"
BackgroundColor "black"
NamePlacement "alternate"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [585, 436, 590, 474]
Orientation "left"
BackgroundColor "black"
NamePlacement "alternate"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 2]
Position [215, 286, 220, 324]
Orientation "left"
BackgroundColor "black"
NamePlacement "alternate"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux"
Ports [1, 4]
Position [765, 134, 825, 246]
LinkData {
BlockName "Demux"
DialogParameters {
Outputs "[3 2 1 3 2 2 1 1 1 1 1 1 1 1 1, 1]"
}
BlockName "lastStatus"
DialogParameters {
Value "[ 0 1 0 0 0 0 0 1 0 0 0 0 0 0 "
" 0 ]"
}
BlockName "padding"
DialogParameters {
Value "0"
}
}
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
ShowPortLabels on
machType "Synchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 on
sm2 on
sm3 off
sm4 off
sm5 off
sm6 off
sm7 off
sm8 on
sm9 off
sm10 off
sm11 off
sm115 on
sm12 off
sm13 off
sm14 off
asm1 on
asm2 on
asm3 on
asm4 on
asm5 on
asm6 on
asm7 on
asm8 on
asm9 on
asm10 on
asm11 on
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "1"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [155, 65, 160, 135]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [320, 286, 325, 324]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Relay
Name "Relay3"
Position [160, 555, 190, 585]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Relay
Name "Relay4"
Position [155, 465, 185, 495]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [235, 290, 295, 320]
Orientation "left"
NamePlacement "alternate"
FunctionName "snchoose"
Parameters "psaia,psaib"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [195, 85, 255, 115]
FunctionName "vectorchoose"
Parameters "sn,q,t"
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [955, 41, 990, 199]
Location [270, 152, 722, 529]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Step
Name "Step"
Position [535, 25, 565, 55]
After "5"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [215, 452, 235, 508]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [280, 542, 295, 598]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -