📄 qp.mdl
字号:
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [190, 45, 210, 65]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [815, 450, 835, 470]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [235, 560, 250, 615]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [225, 235, 245, 255]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum5"
Ports [3, 1]
Position [435, 130, 455, 200]
ShowName off
IconShape "rectangular"
Inputs "+++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum6"
Ports [3, 1]
Position [515, 345, 535, 415]
ShowName off
IconShape "rectangular"
Inputs "+++"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "cos(wt)\nib1"
Ports [0, 1]
Position [610, 480, 650, 540]
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 "-200|0.5|50"
MaskVariableAliases ",,"
System {
Name "cos(wt)\nib1"
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 "Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "pahse\n"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [35, 0; 0, -20]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "amplitude\n"
SrcPort 1
Points [355, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Line {
SrcBlock "Sine wt-120"
SrcPort 1
Points [80, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [25, 0]
Branch {
Points [5, 0]
Branch {
Points [15, 0]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 235]
DstBlock "Math\nFunction1"
DstPort 1
}
}
Branch {
Points [0, -40]
DstBlock "Product4"
DstPort 2
}
}
Line {
SrcBlock "Sine wt"
SrcPort 1
Points [55, 0]
Branch {
Points [20, 0]
Branch {
DstBlock "Sum4"
DstPort 2
}
Branch {
Points [25, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Product4"
DstPort 1
}
}
}
Branch {
Points [-5, 0]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, 190]
DstBlock "Math\nFunction2"
DstPort 1
}
}
Line {
SrcBlock "Sine wt-1"
SrcPort 1
Points [0, 5; 80, 0]
Branch {
Points [0, 225]
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [10, 0; 0, 10]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Sum3"
DstPort 2
}
Line {
Labels [0, 0]
SrcBlock "Sum3"
SrcPort 1
Points [30, 0]
Branch {
Points [-30, 0]
DstBlock "Product3"
DstPort 2
}
Branch {
Points [5, 0]
Branch {
Points [30, 0]
}
Branch {
Points [-5, 0]
DstBlock "Scope5"
DstPort 1
}
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [70, 0]
DstBlock "Sum5"
DstPort 3
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0]
Branch {
Points [30, 0]
DstBlock "Product3"
DstPort 1
}
Branch {
Points [0, 265]
DstBlock "Math\nFunction"
DstPort 1
}
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [100, 0]
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0]
Branch {
Points [65, 0]
DstBlock "Product5"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [100, 0]
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
Points [0, 35; 95, 0]
DstBlock "Sum6"
DstPort 3
}
Line {
SrcBlock "Sum6"
SrcPort 1
Points [250, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [5, 0; 0, 10]
DstBlock "Product5"
DstPort 1
}
Line {
SrcBlock "Product5"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sine wt+120"
SrcPort 1
Points [60, 0; 0, 5; 85, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "Sine wt-30"
SrcPort 1
Points [25, 0; 0, -10]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "cos(wt)\nib1"
SrcPort 1
Points [25, 0; 0, -60]
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Sine wt-2"
SrcPort 1
Points [0, 5; 35, 0; 0, -10; 5, 0]
Branch {
Points [0, 170]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, -275]
DstBlock "Product1"
DstPort 2
}
}
Annotation {
Position [242, 135]
Text "ub-uc"
}
Annotation {
Position [238, 43]
Text "ua-ub"
}
Annotation {
Position [270, 236]
Text "uc-ua"
}
Annotation {
Position [264, 578]
Text "ic"
}
Annotation {
Position [372, 163]
Text "(ub-uc)*ia"
}
Annotation {
Position [379, 249]
Text "(uc-ua)*ib"
}
Annotation {
Position [359, 54]
Text "(ua-ub)*ic"
}
Annotation {
Position [615, 156]
Text "q"
}
Annotation {
Position [426, 308]
Text "(ua-ub)^2"
}
Annotation {
Position [431, 381]
Text "(ub-uc)^2"
}
Annotation {
Position [441, 461]
Text "(uc-ua)^2"
}
Annotation {
Position [568, 372]
Text "A"
}
Annotation {
Position [876, 122]
Text "qa"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -