📄 untitled.mdl
字号:
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope9"
Ports [1]
Position [740, 289, 770, 321]
Floating off
Location [66, 166, 390, 405]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData11"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [575, 150, 605, 180]
Time "0.5"
Before "0"
After "5"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [200, 530, 230, 560]
ShowName off
IconShape "round"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [660, 105, 690, 135]
ShowName off
IconShape "round"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [270, 25, 300, 55]
ShowName off
IconShape "round"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [400, 140, 430, 170]
ShowName off
IconShape "round"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [390, 268, 490, 312]
Numerator "[1 0 0]"
Denominator "[1 44.4 987.65]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [750, 93, 850, 137]
Numerator "[1 0 0]"
Denominator "[1 150 10000]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
Name "compensate_current\ndq_method\n\n1"
Ports [3, 3]
Position [235, 95, 275, 155]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "compensate_current\ndq_method\n\n1"
Location [96, 74, 688, 352]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [25, 58, 55, 72]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [25, 78, 55, 92]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [360, 124, 390, 156]
Floating off
Location [708, 401, 1032, 640]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [175, 119, 205, 151]
Floating off
Location [36, 393, 360, 632]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [285, 139, 315, 171]
Floating off
Location [365, 401, 689, 640]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [190, 28, 290, 72]
Numerator "[1 0 0]"
Denominator "[1 44.4 987.65]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
Name "converter23"
Ports [2, 3]
Position [460, 35, 500, 95]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "converter23"
Location [87, 74, 847, 740]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "xd"
Position [25, 28, 55, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "xq"
Position [25, 113, 55, 127]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [360, 26, 405, 59]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [360, 111, 405, 144]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [385, 211, 430, 244]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [395, 331, 440, 364]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [395, 441, 440, 474]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [400, 541, 445, 574]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [520, 90, 540, 170]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [535, 385, 555, 465]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [525, 245, 545, 325]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "cos\n(wt-120)"
Ports [0, 1]
Position [230, 155, 270, 215]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "cos(wt+phase)"
MaskPromptString "相位|幅值|频率"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "phase=@1;Amplitude=@2;f=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-120|1|50"
MaskVariableAliases ",,"
System {
Name "cos\n(wt-120)"
Location [-8, 74, 607, 357]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [25, 130, 45, 150]
DisplayTime off
Decimation "1"
}
Block {
BlockType Gain
Name "Gain"
Position [105, 122, 175, 158]
Gain "2*pi*f"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [105, 217, 170, 253]
Gain "pi/180"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [460, 166, 505, 199]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [255, 131, 295, 244]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [360, 175, 390, 205]
Operator "cos"
OutputSignalType "auto"
}
Block {
BlockType Constant
Name "amplitude\n"
Position [30, 22, 85, 58]
Value "Amplitude"
VectorParams1D on
}
Block {
BlockType Constant
Name "pahse\n"
Position [25, 220, 55, 250]
Value "phase"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out1"
Position [560, 178, 590, 192]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "amplitude\n"
SrcPort 1
Points [355, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [35, 0; 0, -20]
DstBlock "Sum"
DstPort 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -