📄 ch3example9.mdl
字号:
Model {
Name "ch3example9"
Version 5.0
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Jul 13 14:41:50 2007"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "shaoyubin"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Jul 13 15:25:27 2007"
ModelVersionFormat "1.%<AutoIncrement:4>"
ConfigurationManager "None"
SimParamPage "Solver"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
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 on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BufferReuse on
RTWExpressionDepthLimit 5
SimulationMode "normal"
Solver "ode45"
SolverMode "Auto"
StartTime "0.0"
StopTime "10.0"
MaxOrder 5
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "1/10000"
RelTol "1e-3"
AbsTol "auto"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
LoadExternalInput off
ExternalInput "[t, u]"
LoadInitialState off
InitialState "xInitial"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
Decimation "1"
LimitDataPoints on
MaxDataPoints "1000"
SignalLoggingName "sigsOut"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
CheckForMatrixSingularity "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
SfunCompatibilityCheckMsg "none"
RTWInlineParameters off
BlockReductionOpt on
BooleanDataType on
ConditionallyExecuteInputs on
ParameterPooling on
OptimizeBlockIOStorage on
ZeroCross on
AssertionControl "UseLocalSettings"
ProdHWDeviceType "Microprocessor"
ProdHWWordLengths "8,16,32,32"
RTWSystemTargetFile "grt.tlc"
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
RTWRetainRTWFile off
TLCProfiler off
TLCDebug off
TLCCoverage off
TLCAssertion off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
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 "ch3example9"
Location [158, 66, 758, 472]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [15, 70, 35, 90]
FontSize 12
Decimation "1"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [340, 152, 440, 188]
FontSize 12
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [340, 85, 435, 115]
FontSize 12
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [345, 213, 440, 247]
FontSize 12
Decimation "1"
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [345, 278, 440, 312]
FontSize 12
Decimation "1"
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [410, 25, 500, 55]
FontSize 12
Decimation "1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [65, 65, 125, 95]
FontSize 12
Expr "1+sin(2*pi*100*u)+2*cos(2*pi*153*u)"
}
Block {
BlockType Reference
Name "Maximum"
Ports [1, 1]
Position [255, 150, 310, 190]
FontSize 12
SourceBlock "dspstat3/Maximum"
SourceType "Maximum"
fcn "Running"
reset "None"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [255, 80, 310, 120]
FontSize 12
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run on
reset_popup "None"
}
Block {
BlockType Reference
Name "Minimum"
Ports [1, 1]
Position [260, 275, 315, 315]
FontSize 12
SourceBlock "dspstat3/Minimum"
SourceType "Minimum"
fcn "Running"
reset_popup "None"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [340, 21, 385, 54]
FontSize 12
InputSameDT off
}
Block {
BlockType Reference
Name "RMS"
Ports [1, 1]
Position [255, 16, 310, 54]
FontSize 12
SourceBlock "dspstat3/RMS"
SourceType "RMS"
run on
reset_popup "None"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [160, 154, 190, 186]
FontSize 12
Location [54, 389, 378, 628]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.05"
YMin "-2"
YMax "4"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Variance"
Ports [1, 1]
Position [250, 213, 325, 247]
FontSize 12
SourceBlock "dspstat3/Variance"
SourceType "Variance"
run on
reset_popup "None"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [155, 61, 190, 99]
FontSize 12
SampleTime "1/10000"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Maximum"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -45]
DstBlock "RMS"
DstPort 1
}
Branch {
Points [0, 20]
Branch {
DstBlock "Mean"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "Maximum"
DstPort 1
}
Branch {
Points [0, 60]
Branch {
Points [0, 65]
DstBlock "Minimum"
DstPort 1
}
Branch {
DstBlock "Variance"
DstPort 1
}
}
}
}
}
Line {
SrcBlock "Mean"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "Variance"
SrcPort 1
DstBlock "Display2"
DstPort 1
}
Line {
SrcBlock "Minimum"
SrcPort 1
DstBlock "Display3"
DstPort 1
}
Line {
SrcBlock "RMS"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Display4"
DstPort 1
}
Annotation {
Name "总功率"
Position [524, 36]
FontSize 12
}
Annotation {
Name "直流分量"
Position [465, 96]
FontSize 12
}
Annotation {
Name "最大值"
Position [463, 163]
FontSize 12
}
Annotation {
Name "最小值"
Position [467, 290]
FontSize 12
}
Annotation {
Name "交流功率"
Position [468, 223]
FontSize 12
}
Annotation {
Name "信号物理参数的测试模型\n文件名:ch3example9.mdl"
Position [103, 238]
DropShadow on
FontName "Arial"
FontSize 12
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -