📄 illustration_of_tcr_masked.mdl
字号:
SrcBlock "Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "pi/2"
Position [25, 110, 55, 140]
Value "pi/2"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "uab\n"
Ports [0, 1]
Position [270, 340, 310, 400]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "sin(wt+phase)"
MaskDescription "Amplitude*sin(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 "30|1|50"
MaskVariableAliases ",,"
System {
Name "uab\n"
Location [27, 112, 815, 496]
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, 135, 45, 155]
DisplayTime off
Decimation "1"
}
Block {
BlockType Gain
Name "Gain"
Position [105, 127, 175, 163]
Gain "2*pi*f"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [105, 222, 170, 258]
Gain "pi/180"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [460, 171, 505, 204]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [255, 136, 295, 249]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [360, 180, 390, 210]
Operator "sin"
OutputSignalType "auto"
}
Block {
BlockType Constant
Name "amplitude\n"
Position [30, 27, 85, 63]
Value "Amplitude"
VectorParams1D on
}
Block {
BlockType Constant
Name "pahse\n"
Position [25, 225, 55, 255]
Value "phase"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out1"
Position [560, 183, 590, 197]
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
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [25, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "pahse\n"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [415, 168, 445, 182]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "cos(wt+pi/6)\n"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "pi/2"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "a"
SrcPort 1
Points [40, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "cos(wt+pi/6)\n1"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [10, 0; 0, -25]
DstBlock "Switch1"
DstPort 1
}
}
Line {
SrcBlock "a1"
SrcPort 1
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [40, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "uab\n"
SrcPort 1
Points [55, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "a3"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [30, 0; 0, 50]
Branch {
Points [0, 30]
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 5]
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Switch1"
DstPort 2
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [25, 0; 0, -70]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "a2"
SrcPort 1
Points [5, 0; 0, -30]
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Position [197, 45]
Text "iab+"
}
Annotation {
Position [199, 230]
Text "iab_"
}
}
}
Block {
BlockType SubSystem
Name "ca波形"
Ports [0, 1]
Position [75, 285, 115, 345]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDescription "输入ca正向和反向触发角,用示波器可以在输出端看"
"到ca线电压波形和电流波形。触发角从线电压最值处开始计算\nca线电压表达式为:sin"
"(wt+5*pi/6)"
MaskPromptString "ca反向触发角(弧度)|ca正向触发角(弧度)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "a1=@1;a=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "pi/3|0"
MaskVariableAliases ","
System {
Name "ca波形"
Location [505, 171, 935, 548]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Gain
Name "Gain10"
Position [220, 200, 250, 230]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain7"
Position [150, 40, 180, 70]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain8"
Position [150, 115, 180, 145]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain9"
Position [110, 200, 140, 230]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [345, 126, 350, 164]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [205, 45, 225, 65]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [165, 205, 185, 225]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Switch
Name "Switch4"
Position [270, 39, 300, 121]
Threshold "0"
}
Block {
BlockType Switch
Name "Switch5"
Position [275, 174, 305, 256]
Threshold "0"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction4"
Ports [1, 1]
Position [80, 115, 110, 145]
ShowName off
Operator "sin"
OutputSignalType "auto"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction5"
Ports [1, 1]
Position [90, 275, 120, 305]
ShowName off
Operator "sin"
OutputSignalType "auto"
}
Block {
BlockType Constant
Name "a10"
Position [220, 90, 250, 120]
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "a11"
Position [200, 250, 230, 280]
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "a8"
Position [25, 115, 55, 145]
Value "a"
VectorParams1D on
}
Block {
BlockType Constant
Name "a9"
Position [35, 275, 65, 305]
Value "a1"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "cos(wt+5*pi/6)\n"
Ports [0, 1]
Position [75, 25, 115, 85]
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -