📄 illustration_of_tcr_masked.mdl
字号:
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|1|50"
MaskVariableAliases ",,"
System {
Name "sin(wt)1"
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 SubSystem
Name "ubc"
Ports [0, 1]
Position [285, 260, 325, 320]
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 "-1*90|1|50"
MaskVariableAliases ",,"
System {
Name "ubc"
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 [410, 188, 440, 202]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "sin(wt)"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "a4"
SrcPort 1
DstBlock "Trigonometric\nFunction2"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction2"
SrcPort 1
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [40, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Switch2"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Switch2"
DstPort 2
}
}
Line {
SrcBlock "a5"
SrcPort 1
DstBlock "Switch2"
DstPort 3
}
Line {
SrcBlock "sin(wt)1"
SrcPort 1
DstBlock "Gain5"
DstPort 1
}
Line {
SrcBlock "a6"
SrcPort 1
DstBlock "Trigonometric\nFunction3"
DstPort 1
}
Line {
SrcBlock "Gain5"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction3"
SrcPort 1
Points [50, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Gain6"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Switch3"
DstPort 1
}
}
Line {
SrcBlock "Gain6"
SrcPort 1
DstBlock "Switch3"
DstPort 2
}
Line {
SrcBlock "a7"
SrcPort 1
Points [30, 0]
DstBlock "Switch3"
DstPort 3
}
Line {
SrcBlock "Switch3"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [20, 0; 0, 105]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "ubc"
SrcPort 1
Points [15, 0; 0, -85]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Position [227, 42]
Text "ibc+"
}
Annotation {
Position [212, 180]
Text "ibc_"
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [145, 34, 175, 66]
Floating off
Location [554, 503, 878, 742]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace on
SaveName "data"
DataFormat "Array"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [165, 169, 195, 201]
Floating off
Location [508, 329, 832, 568]
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 "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -