📄 xtsh.mdl
字号:
Model {
Name "xtsh"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0"
StopTime "4"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "1e-3"
Refine "1"
MaxStep "0.001"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Wed Jan 05 21:48:09 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Mar 31 10:21:47 2000"
ModelVersionFormat "1.%<AutoIncrement:3>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "xtsh"
Location [139, 139, 538, 428]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Sin
Name " 载波"
Position [40, 76, 65, 104]
FontName "宋体"
FontSize 12
Amplitude "1"
Frequency "100"
Phase "0"
SampleTime "0.001"
}
Block {
BlockType Product
Name "乘法器"
Ports [2, 1, 0, 0, 0]
Position [105, 80, 125, 115]
FontName "宋体"
FontSize 12
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType TransferFcn
Name "二阶系统"
Position [155, 202, 245, 248]
DropShadow on
FontName "宋体"
FontSize 12
Numerator "[1]"
Denominator "[L*C R*C 1]"
MaskType " 单元7"
MaskDescription " 单元7"
MaskPromptString "电阻值(欧):|电感值(亨):|电容值(法):"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskInitialization "R=@1;L=@2;C=@3;"
MaskDisplay "plot([3 5 5 5],[2 2 1.5 2.5],[5 9],[2.5 2.5],[5"
" 9],[1.5 1.5],[9 9],[2.5 1.5],[9 11],[2 2],[11:1/7:12],[2 2.5 2.707 2.866 2.8"
"66 2.707 2.5 2],[12:1/7:13],[2 2.5 2.707 2.866 2.866 2.707 2.5 2],[13:1/7:14]"
",[2 2.5 2.707 2.866 2.866 2.707 2.5 2],[14:1/7:15],[2 2.5 2.707 2.866 2.866 2"
".707 2.5 2],[15 21],[2 2],[18 18 16 20],[2 0 0 0],[16 20],[-1 -1],[18 18 17 1"
"9],[-1 -3 -3 -3]);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "50|1|.0001"
}
Block {
BlockType SubSystem
Name "频谱分析仪\n(系统的频率特性)"
Ports [2, 0, 0, 0, 0]
Position [315, 142, 345, 178]
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 "1024|1024|200|0.005"
System {
Name "频谱分析仪\n(系统的频率特性)"
Location [2, 84, 373, 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 [315, 207, 345, 243]
FontName "宋体"
FontSize 12
Floating off
Location [292, 238, 635, 441]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "2.000000"
YMin "-10"
YMax "10"
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 [315, 82, 345, 118]
FontName "宋体"
FontSize 12
Floating off
Location [292, 37, 635, 242]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "2.000000"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "信号1"
Ports [0, 1, 0, 0, 0]
Position [40, 130, 65, 160]
FontName "宋体"
FontSize 12
ShowPortLabels off
System {
Name "信号1"
Location [6, 222, 214, 377]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "常数"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -