📄 axzblock.mdl
字号:
SrcPort 1
DstBlock "S-function\nM-file which plots\nlines\n"
DstPort 1
}
Line {
SrcBlock "x"
SrcPort 1
Points [35, 0; 0, 30]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "y"
SrcPort 1
Points [35, 0; 0, -25]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType RateLimiter
Name "比率限制器"
Position [445, 260, 470, 280]
FontName "宋体"
FontSize 12
RisingSlewLimit "1"
FallingSlewLimit "-1"
}
Block {
BlockType Lookup
Name "查找表"
Position [310, 260, 335, 280]
FontName "宋体"
FontSize 12
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
}
Block {
BlockType Constant
Name "常量"
Position [450, 200, 470, 220]
FontName "宋体"
FontSize 12
Value "1"
}
Block {
BlockType Product
Name "乘法器"
Ports [2, 1, 0, 0, 0]
Position [245, 260, 270, 280]
FontName "宋体"
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "传递函数"
Position [185, 37, 220, 73]
FontName "宋体"
FontSize 12
Numerator "[1]"
Denominator "[1 0]"
}
Block {
BlockType TransportDelay
Name "传输延迟"
Position [160, 255, 205, 285]
FontName "宋体"
FontSize 12
DelayTime "1"
InitialInput "0"
BufferSize "1024"
}
Block {
BlockType UnitDelay
Name "单位延迟"
Position [370, 337, 420, 353]
FontName "宋体"
FontSize 12
X0 "0"
SampleTime "1"
}
Block {
BlockType Fcn
Name "函数"
Position [185, 110, 225, 130]
FontName "宋体"
FontSize 12
Expr "sin(u[1])"
}
Block {
BlockType Integrator
Name "积分"
Ports [1, 1, 0, 0, 0]
Position [380, 197, 415, 223]
FontName "宋体"
FontSize 12
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
}
Block {
BlockType Sum
Name "加法器"
Ports [2, 1, 0, 0, 0]
Position [110, 105, 130, 125]
FontName "宋体"
FontSize 12
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Step
Name "阶跃输入"
Position [30, 260, 50, 280]
FontName "宋体"
FontSize 12
Time "1"
Before "0"
After "1"
SampleTime "-1"
}
Block {
BlockType Switch
Name "开关"
Position [465, 329, 490, 361]
FontName "宋体"
FontSize 12
Threshold "0"
}
Block {
BlockType DiscreteTransferFcn
Name "离散传递函数"
Position [280, 102, 325, 138]
FontName "宋体"
FontSize 12
Numerator "[1]"
Denominator "[1 0]"
SampleTime "1"
}
Block {
BlockType DiscreteZeroPole
Name "离散零极点表达式"
Position [185, 328, 245, 362]
FontName "宋体"
FontSize 12
Zeros "[1]"
Poles "[0; 0.5]"
Gain "[1]"
SampleTime "1"
}
Block {
BlockType DiscreteStateSpace
Name "离散状态空间"
Position [15, 321, 145, 369]
FontName "宋体"
FontSize 12
A "1"
B "1"
C "1"
D "1"
X0 "0"
SampleTime "1"
}
Block {
BlockType ZeroPole
Name "零极点表达式"
Position [100, 192, 145, 228]
FontName "宋体"
FontSize 12
Zeros "[1]"
Poles "[0; -1]"
Gain "[1]"
}
Block {
BlockType DiscreteFilter
Name "滤波器"
Position [280, 326, 335, 364]
FontName "宋体"
FontSize 12
Numerator "[1]"
Denominator "[1 2]"
SampleTime "1"
}
Block {
BlockType Scope
Name "示波器"
Ports [1, 0, 0, 0, 0]
Position [35, 102, 55, 128]
FontName "宋体"
FontSize 12
Floating off
Location [100, 100, 380, 320]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1.000000"
YMin "-1.000000"
YMax "1.000000"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Derivative
Name "微分"
Position [20, 194, 60, 226]
FontName "宋体"
FontSize 12
}
Block {
BlockType Saturate
Name "限幅器"
Position [375, 260, 400, 280]
FontName "宋体"
FontSize 12
UpperLimit "0.5"
LowerLimit "-0.5"
}
Block {
BlockType SignalGenerator
Name "信号发生器"
Position [20, 38, 65, 72]
FontName "宋体"
FontSize 12
WaveForm "sine"
Amplitude "1.000000"
Frequency "1.000000"
Units "rad/sec"
}
Block {
BlockType Gain
Name "增益"
Position [110, 45, 130, 65]
FontName "宋体"
FontSize 12
Gain "1"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sin
Name "正弦波"
Position [95, 260, 115, 280]
FontName "宋体"
FontSize 12
Amplitude "1"
Frequency "1"
Phase "0"
SampleTime "-1"
}
Block {
BlockType StateSpace
Name "状态空间"
Position [185, 192, 265, 228]
FontName "宋体"
FontSize 12
A "1"
B "1"
C "1"
D "1"
X0 "0"
}
Block {
BlockType SubSystem
Name "自动调整\n示波器"
Ports [1, 0, 0, 0, 0]
Position [285, 30, 315, 70]
FontName "宋体"
FontSize 12
ShowPortLabels off
MaskType "Storage scope."
MaskDescription "Storage scope using MATLAB graph window.\nEnter"
" plotting ranges and line type."
MaskHelp "Uses MATLAB's graph window.\\nUse only one bloc"
"k per system.\\nLine type must be in quotes.\\nSee the M-file sfunyst.m."
MaskPromptString "Initial Time Range:|Initial y-min:|Initial y-ma"
"x:|Storage pts.:|Line type (rgbw-.:xo):|Sample time:"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskInitialization "npts = @4; color = @5; ax = [0, @1, @2, @3]; dt"
"=@6;"
MaskDisplay "plot(0,0,100,100,[83,76,63,52,42,38,28,16,11,84"
",11,11,11,90,90,11],[75,58,47,54,72,80,84,74,65,65,65,90,40,40,90,90])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "5|-10|10|200|'y-/g--/c-./w:/m*/ro/b+'|.1"
System {
Name "自动调整\n示波器"
Location [0, 59, 274, 252]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "x"
Position [65, 55, 85, 75]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType "S-Function"
Name "S-function\nM-file which plots\nlines\n"
Ports [1, 1, 0, 0, 0]
Position [130, 55, 180, 75]
FunctionName "sfunyst"
Parameters "ax, color, npts, dt"
PortCounts "[]"
SFunctionModules "''"
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "S-function\nM-file which plots\nlines\n"
DstPort 1
}
}
}
Annotation {
Position [58, 13]
VerticalAlignment "top"
Text "最常用的模块:"
FontName "宋体"
FontSize 12
}
Annotation {
Position [58, 168]
VerticalAlignment "top"
Text "其它常用模块:"
FontName "宋体"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -