📄 rjsh.mdl
字号:
SrcPort 1
Points [-35, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [90, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
Branch {
Points [55, 0; 0, 45]
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
Branch {
Points [20, 0; 0, 85]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
Branch {
Points [70, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-35, 0; 0, -35]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Relational\noperator"
DstPort 1
}
Line {
SrcBlock "Relational\noperator"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Relational\noperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "频谱分析仪\n(系统的频率特性)"
Ports [2, 0, 0, 0, 0]
Position [285, 102, 315, 138]
DropShadow on
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskType "Spectrum analyzer."
MaskDescription "Spectrum analyser using graph window.\nHook inp"
"ut 1 to system input.\nHook input 2 to system output."
MaskHelp "Hook the system's input to the first port of th"
"is block and the system's output to second port. Results are displayed as the"
" frequency response of this system. Use signals with high harmonic content fo"
"r best results. "
MaskPromptString "Length of buffer:|Number of points for fft:|Plo"
"t after how many points:|Sample time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskInitialization "npts=@1; fftpts=@2; HowOften=@3; ts=@4(1); if l"
"ength(@4) > 1, offset = @4(2), else, offset = 0; end"
MaskDisplay "plot(0,0,100,100,[11,93,93,11,11],[90,90,40,40,"
"90],[90,80,72,64,55,45,41,36,20],[50,50,52,59,67,75,78,80,80])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "512|1024|100|0.05"
System {
Name "频谱分析仪\n(系统的频率特性)"
Location [4, 84, 375, 269]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "system input"
Position [55, 30, 75, 50]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "system output"
Position [55, 110, 75, 130]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [145, 71, 175, 104]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType "S-Function"
Name "S-function block\nwhich calls M-file"
Ports [1, 0, 0, 0, 0]
Position [250, 72, 295, 108]
FunctionName "ssfuntf"
Parameters "fftpts,npts,HowOften,offset,ts,0"
PortCounts "[]"
SFunctionModules "''"
}
Line {
SrcBlock "system output"
SrcPort 1
Points [30, 0; 0, -25]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "system input"
SrcPort 1
Points [30, 0; 0, 40]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-function block\nwhich calls M-file"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "示波器\n(输入信号)\n"
Ports [1, 0, 0, 0, 0]
Position [350, 37, 380, 73]
FontName "宋体"
FontSize 12
Floating off
Location [317, 30, 639, 237]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "30.000000"
YMin "-1.5"
YMax "1.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "示波器\n(系统响应)"
Ports [1, 0, 0, 0, 0]
Position [365, 168, 395, 202]
FontName "宋体"
FontSize 12
Floating off
Location [315, 232, 640, 440]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "30.000000"
YMin "-1.5"
YMax "1.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "方波信号"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "二阶RLC系统"
DstPort 1
}
Branch {
Points [0, -75]
Branch {
Points [0, -55]
DstBlock "示波器\n(输入信号)\n"
DstPort 1
}
Branch {
DstBlock "频谱分析仪\n(系统的频率特性)"
DstPort 1
}
}
}
Line {
SrcBlock "二阶RLC系统"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "示波器\n(系统响应)"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "频谱分析仪\n(系统的频率特性)"
DstPort 2
}
}
Annotation {
Position [102, 17]
VerticalAlignment "top"
ForegroundColor "blue"
Text "二阶系统的时域特性"
FontName "楷体_GB2312"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -