?? yjsh.mdl
字號:
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 "頻譜分析儀1\n(系統1的頻譜)"
Location [6, 84, 377, 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 SubSystem
Name "頻譜分析儀2\n(系統2的頻譜)"
Ports [2, 0, 0, 0, 0]
Position [270, 196, 300, 234]
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 "頻譜分析儀2\n(系統2的頻譜)"
Location [6, 84, 377, 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(輸入信號)"
Ports [1, 0, 0, 0, 0]
Position [345, 57, 375, 93]
FontName "宋體"
FontSize 12
Floating off
Location [307, 31, 640, 182]
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(系統1的響應)"
Ports [1, 0, 0, 0, 0]
Position [350, 148, 380, 182]
FontName "宋體"
FontSize 12
Floating off
Location [1, 23, 1025, 767]
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(系統2的響應)"
Ports [1, 0, 0, 0, 0]
Position [355, 247, 385, 283]
FontName "宋體"
FontSize 12
Floating off
Location [306, 303, 640, 469]
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 TransferFcn
Name "一階系統1"
Position [120, 141, 190, 189]
FontName "宋體"
FontSize 12
Numerator "[R*C 0]"
Denominator "[R*C 1]"
MaskType "微分"
MaskDescription "微分"
MaskPromptString "電容量(法):|電阻值(歐姆):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "C=@1;R=@2;"
MaskDisplay "plot([0 2 2 2],[2 2 0 4],[3 3 3 8],[0 4 2 2],[6"
" 6 5.5 6.5],[2 0 0 0],[5.5 5.5],[0 -4],[6.5 6.5],[0 -4],[5.5 6.5 6 6],[-4 -4 "
"-4 -5.5],[5.5 6.5],[-5.5 -5.5]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|10"
}
Block {
BlockType TransferFcn
Name "一階系統2"
Position [120, 240, 190, 290]
FontName "宋體"
FontSize 12
Numerator "[1]"
Denominator "[R*C 1]"
MaskType "積分"
MaskDescription "積分"
MaskPromptString "電容量(法):|電阻值(歐姆):"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskInitialization "C=@1;R=@2;"
MaskDisplay "plot([0 2 2 2],[2 2 1.5 2.5],[2 6],[2.5 2.5],[2"
" 6],[1.5 1.5],[6 6],[2.5 1.5],[6 11],[2 2],[8 8 6 10],[2 0 0 0],[6 10],[-1 -1"
"],[8 8 7 9],[-1 -3 -3 -3]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|10"
}
Line {
SrcBlock "方波信號"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "一階系統1"
DstPort 1
}
Branch {
Points [0, 0]
Branch {
Points [0, 40]
Branch {
Points [0, 60]
DstBlock "一階系統2"
DstPort 1
}
Branch {
DstBlock "頻譜分析儀2\n(系統2的頻譜)"
DstPort 1
}
}
Branch {
Points [0, -60]
Branch {
Points [0, -30]
DstBlock "示波器\n(輸入信號)"
DstPort 1
}
Branch {
DstBlock "頻譜分析儀1\n(系統1的頻譜)"
DstPort 1
}
}
}
}
Line {
SrcBlock "一階系統2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "示波器\n(系統2的響應)"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "頻譜分析儀2\n(系統2的頻譜)"
DstPort 2
}
}
Line {
SrcBlock "一階系統1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "示波器\n(系統1的響應)"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "頻譜分析儀1\n(系統1的頻譜)"
DstPort 2
}
}
Annotation {
Position [122, 27]
VerticalAlignment "top"
ForegroundColor "blue"
Text "一階系統的時域特性"
FontName "楷體_GB2312"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -