?? chap4_8.mdl
字號:
Model {
Name "chap4_8"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "1"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
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 "Sat May 12 17:01:59 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Jun 11 08:37:47 2004"
ModelVersionFormat "1.%<AutoIncrement:204>"
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 "chap4_8"
Location [4, 74, 800, 555]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "99"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType MATLABFcn
Name " \n"
Position [430, 134, 495, 176]
MATLABFcn "chap4_8m2(u(1),u(2),u(3),u(4))"
OutputWidth "1"
OutputSignalType "auto"
}
Block {
BlockType MATLABFcn
Name " \npid control"
Position [375, 213, 435, 257]
MATLABFcn "chap4_8m1(u(1),u(2),u(3))"
OutputWidth "1"
OutputSignalType "auto"
}
Block {
BlockType Clock
Name "Clock"
Position [210, 241, 255, 269]
DisplayTime on
Decimation "10"
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [535, 132, 660, 178]
Numerator "[0.0008674 0.0008503]"
Denominator "[1 -1.94 0.9418]"
SampleTime "0.001"
}
Block {
BlockType Reference
Name "Manual Switch2"
Ports [2, 1, 0, 0, 0]
Position [115, 185, 150, 220]
ShowName off
FontName "Arial"
FontSize 12
SourceBlock "simulink3/Nonlinear/Manual Switch"
SourceType "Manual Switch"
sw "0"
action "0"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [690, 119, 720, 166]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1, 0, 0, 0]
Position [280, 135, 310, 175]
ShowName off
Inputs "3"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1, 0, 0, 0]
Position [370, 135, 400, 175]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1, 0, 0, 0, 0]
Position [740, 130, 770, 160]
Floating off
Location [151, 59, 795, 524]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.2 "
YMin "0.988"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "0.001"
SampleInput on
SampleTime "0.001"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1, 0, 0, 0, 0]
Position [555, 325, 585, 355]
Floating off
Location [5, 34, 649, 499]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.2 "
YMin "-0.00045"
YMax "-0.0004225"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "0.001"
SampleInput on
SampleTime "0.001"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1, 0, 0, 0, 0]
Position [555, 225, 585, 255]
Floating off
Location [5, 34, 649, 499]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.2 "
YMin "0.52382"
YMax "0.523925"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "50000"
Decimation "0.001"
SampleInput on
SampleTime "0.001"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [55, 225, 85, 255]
WaveForm "square"
Amplitude "0.5"
Frequency "4"
Units "Hertz"
}
Block {
BlockType Step
Name "Step"
Position [55, 165, 85, 195]
Time "0"
Before "0"
After "1"
SampleTime "0.001"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [205, 186, 235, 224]
ShowName off
IconShape "rectangular"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [0, -85]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 80]
DstBlock " \npid control"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, -10]
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock " \n"
DstPort 1
}
Line {
Labels [1, 0]
SrcBlock "Manual Switch2"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, -65]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -35; 510, 0]
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock " \npid control"
SrcPort 1
Points [25, 0; 0, -20]
Branch {
Labels [3, 0]
Points [0, -10; -125, 0; 0, -40]
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [25, 0; 0, 125]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 140; -510, 0; 0, -80]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Step"
SrcPort 1
Points [10, 0]
DstBlock "Manual Switch2"
DstPort 1
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [10, 0]
DstBlock "Manual Switch2"
DstPort 2
}
Line {
SrcBlock " \n"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 85]
DstBlock "Scope3"
DstPort 1
}
Branch {
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
}
Annotation {
Position [460, 188]
Text "cmac control"
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -