chap7_4f2.mdl
资源名称:PID.rar [点击查看]
上传用户:zmkm82318
上传日期:2015-11-07
资源大小:198k
文件大小:8k
源码类别:
其他
开发平台:
Matlab
- Model {
- Name "chap7_4f2"
- Version 3.00
- SimParamPage "Solver"
- SampleTimeColors off
- InvariantConstants off
- WideVectorLines off
- ShowLineWidths off
- ShowPortDataTypes off
- StartTime "0.0"
- StopTime "100"
- 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 "Tue Jul 02 15:24:31 2002"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Sun Jun 06 21:09:22 2004"
- ModelVersionFormat "1.%<AutoIncrement:80>"
- 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 "chap7_4f2"
- Location [8, 74, 648, 467]
- 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 Reference
- Name "PID Controller"
- Ports [1, 1, 0, 0, 0]
- Position [140, 94, 175, 166]
- SourceBlock "simulink_extras/AdditionalnLinear/PID Controll"
- "er"
- SourceType "PID Controller"
- P "kp"
- I "ki"
- D "kd"
- }
- Block {
- BlockType Saturate
- Name "Saturation"
- Position [210, 115, 240, 145]
- UpperLimit "5"
- LowerLimit "-5"
- }
- Block {
- BlockType Scope
- Name "Scope"
- Ports [1, 0, 0, 0, 0]
- Position [510, 89, 540, 121]
- Floating off
- Location [121, 138, 501, 390]
- Open on
- NumInputPorts "1"
- TickLabels "OneTimeTick"
- ZoomMode "on"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- }
- Grid "on"
- TimeRange "auto"
- YMin "-5"
- YMax "5"
- SaveToWorkspace off
- SaveName "ScopeData"
- DataFormat "StructureWithTime"
- LimitMaxRows on
- MaxRows "5000"
- Decimation "1"
- SampleInput off
- SampleTime "0"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [45, 113, 65, 147]
- Time "1"
- Before "0"
- After "1"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1, 0, 0, 0]
- Position [85, 120, 105, 140]
- ShowName off
- IconShape "round"
- Inputs "|+-"
- SaturateOnIntegerOverflow on
- }
- Block {
- BlockType TransferFcn
- Name "Transfer Fcn"
- Position [330, 104, 435, 156]
- Numerator "[50 50]"
- Denominator "[1 1 1]"
- }
- Block {
- BlockType TransferFcn
- Name "Transfer Fcn1"
- Position [275, 109, 300, 151]
- Numerator "[1]"
- Denominator "[1 0]"
- }
- Block {
- BlockType Outport
- Name "NCD Outport"
- Position [495, 149, 550, 211]
- DropShadow on
- OpenFcn "optblock"
- Port "1"
- OutputWhenDisabled "held"
- InitialOutput "0"
- MaskType "NCD Outport"
- MaskDisplay "plot([0:10],[-.5 1.5 .6 1.3 .8 1.1 .95 1.02 .99"
- " 1 1]);ndisp('\n\n NCD\n OutPort 1'); "
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "PID Controller"
- DstPort 1
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Transfer Fcn"
- SrcPort 1
- Points [15, 0]
- Branch {
- Points [0, 80; -360, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Branch {
- Points [15, 0]
- Branch {
- Points [0, 50]
- DstBlock "NCD Outport"
- DstPort 1
- }
- Branch {
- Points [0, -25]
- DstBlock "Scope"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "PID Controller"
- SrcPort 1
- DstBlock "Saturation"
- DstPort 1
- }
- Line {
- SrcBlock "Transfer Fcn1"
- SrcPort 1
- DstBlock "Transfer Fcn"
- DstPort 1
- }
- Line {
- SrcBlock "Saturation"
- SrcPort 1
- DstBlock "Transfer Fcn1"
- DstPort 1
- }
- }
- }