chap7_4f2.mdl
上传用户:zmkm82318
上传日期:2015-11-07
资源大小:198k
文件大小:8k
源码类别:

其他

开发平台:

Matlab

  1. Model {
  2.   Name   "chap7_4f2"
  3.   Version   3.00
  4.   SimParamPage   "Solver"
  5.   SampleTimeColors   off
  6.   InvariantConstants   off
  7.   WideVectorLines   off
  8.   ShowLineWidths   off
  9.   ShowPortDataTypes   off
  10.   StartTime   "0.0"
  11.   StopTime   "100"
  12.   SolverMode   "Auto"
  13.   Solver   "ode45"
  14.   RelTol   "1e-3"
  15.   AbsTol   "auto"
  16.   Refine   "1"
  17.   MaxStep   "auto"
  18.   InitialStep   "auto"
  19.   FixedStep   "auto"
  20.   MaxOrder   5
  21.   OutputOption   "RefineOutputTimes"
  22.   OutputTimes   "[]"
  23.   LoadExternalInput   off
  24.   ExternalInput   "[t, u]"
  25.   SaveTime   on
  26.   TimeSaveName   "tout"
  27.   SaveState   off
  28.   StateSaveName   "xout"
  29.   SaveOutput   on
  30.   OutputSaveName   "yout"
  31.   LoadInitialState   off
  32.   InitialState   "xInitial"
  33.   SaveFinalState   off
  34.   FinalStateName   "xFinal"
  35.   SaveFormat   "Matrix"
  36.   LimitMaxRows   off
  37.   MaxRows   "1000"
  38.   Decimation   "1"
  39.   AlgebraicLoopMsg   "warning"
  40.   MinStepSizeMsg   "warning"
  41.   UnconnectedInputMsg   "warning"
  42.   UnconnectedOutputMsg   "warning"
  43.   UnconnectedLineMsg   "warning"
  44.   InheritedTsInSrcMsg   "warning"
  45.   IntegerOverflowMsg   "warning"
  46.   UnnecessaryDatatypeConvMsg "none"
  47.   Int32ToFloatConvMsg   "warning"
  48.   SignalLabelMismatchMsg  "none"
  49.   ConsistencyChecking   "off"
  50.   ZeroCross   on
  51.   SimulationMode   "normal"
  52.   BlockDataTips   on
  53.   BlockParametersDataTip  on
  54.   BlockAttributesDataTip  off
  55.   BlockPortWidthsDataTip  off
  56.   BlockDescriptionStringDataTip off
  57.   BlockMaskParametersDataTip off
  58.   ToolBar   on
  59.   StatusBar   on
  60.   BrowserShowLibraryLinks off
  61.   BrowserLookUnderMasks   off
  62.   OptimizeBlockIOStorage  on
  63.   BufferReuse   on
  64.   BooleanDataType   off
  65.   RTWSystemTargetFile   "grt.tlc"
  66.   RTWInlineParameters   off
  67.   RTWRetainRTWFile   off
  68.   RTWTemplateMakefile   "grt_default_tmf"
  69.   RTWMakeCommand   "make_rtw"
  70.   RTWGenerateCodeOnly   off
  71.   ExtModeMexFile   "ext_comm"
  72.   ExtModeBatchMode   off
  73.   ExtModeTrigType   "manual"
  74.   ExtModeTrigMode   "oneshot"
  75.   ExtModeTrigPort   "1"
  76.   ExtModeTrigElement   "any"
  77.   ExtModeTrigDuration   1000
  78.   ExtModeTrigHoldOff   0
  79.   ExtModeTrigDelay   0
  80.   ExtModeTrigDirection   "rising"
  81.   ExtModeTrigLevel   0
  82.   ExtModeArchiveMode   "off"
  83.   ExtModeAutoIncOneShot   off
  84.   ExtModeIncDirWhenArm   off
  85.   ExtModeAddSuffixToVar   off
  86.   ExtModeWriteAllDataToWs off
  87.   ExtModeArmWhenConnect   off
  88.   Created   "Tue Jul 02 15:24:31 2002"
  89.   UpdateHistory   "UpdateHistoryNever"
  90.   ModifiedByFormat   "%<Auto>"
  91.   ModifiedDateFormat   "%<Auto>"
  92.   LastModifiedDate   "Sun Jun 06 21:09:22 2004"
  93.   ModelVersionFormat   "1.%<AutoIncrement:80>"
  94.   ConfigurationManager   "none"
  95.   BlockDefaults {
  96.     Orientation     "right"
  97.     ForegroundColor     "black"
  98.     BackgroundColor     "white"
  99.     DropShadow     off
  100.     NamePlacement     "normal"
  101.     FontName     "Helvetica"
  102.     FontSize     10
  103.     FontWeight     "normal"
  104.     FontAngle     "normal"
  105.     ShowName     on
  106.   }
  107.   AnnotationDefaults {
  108.     HorizontalAlignment     "center"
  109.     VerticalAlignment     "middle"
  110.     ForegroundColor     "black"
  111.     BackgroundColor     "white"
  112.     DropShadow     off
  113.     FontName     "Helvetica"
  114.     FontSize     10
  115.     FontWeight     "normal"
  116.     FontAngle     "normal"
  117.   }
  118.   LineDefaults {
  119.     FontName     "Helvetica"
  120.     FontSize     9
  121.     FontWeight     "normal"
  122.     FontAngle     "normal"
  123.   }
  124.   System {
  125.     Name     "chap7_4f2"
  126.     Location     [8, 74, 648, 467]
  127.     Open     on
  128.     ModelBrowserVisibility  off
  129.     ModelBrowserWidth     200
  130.     ScreenColor     "automatic"
  131.     PaperOrientation     "landscape"
  132.     PaperPositionMode     "auto"
  133.     PaperType     "usletter"
  134.     PaperUnits     "inches"
  135.     ZoomFactor     "100"
  136.     AutoZoom     on
  137.     ReportName     "simulink-default.rpt"
  138.     Block {
  139.       BlockType       Reference
  140.       Name       "PID Controller"
  141.       Ports       [1, 1, 0, 0, 0]
  142.       Position       [140, 94, 175, 166]
  143.       SourceBlock       "simulink_extras/AdditionalnLinear/PID Controll"
  144. "er"
  145.       SourceType       "PID Controller"
  146.       P       "kp"
  147.       I       "ki"
  148.       D       "kd"
  149.     }
  150.     Block {
  151.       BlockType       Saturate
  152.       Name       "Saturation"
  153.       Position       [210, 115, 240, 145]
  154.       UpperLimit       "5"
  155.       LowerLimit       "-5"
  156.     }
  157.     Block {
  158.       BlockType       Scope
  159.       Name       "Scope"
  160.       Ports       [1, 0, 0, 0, 0]
  161.       Position       [510, 89, 540, 121]
  162.       Floating       off
  163.       Location       [121, 138, 501, 390]
  164.       Open       on
  165.       NumInputPorts       "1"
  166.       TickLabels       "OneTimeTick"
  167.       ZoomMode       "on"
  168.       List {
  169. ListType AxesTitles
  170. axes1 "%<SignalLabel>"
  171.       }
  172.       Grid       "on"
  173.       TimeRange       "auto"
  174.       YMin       "-5"
  175.       YMax       "5"
  176.       SaveToWorkspace       off
  177.       SaveName       "ScopeData"
  178.       DataFormat       "StructureWithTime"
  179.       LimitMaxRows       on
  180.       MaxRows       "5000"
  181.       Decimation       "1"
  182.       SampleInput       off
  183.       SampleTime       "0"
  184.     }
  185.     Block {
  186.       BlockType       Step
  187.       Name       "Step"
  188.       Position       [45, 113, 65, 147]
  189.       Time       "1"
  190.       Before       "0"
  191.       After       "1"
  192.       SampleTime       "0"
  193.     }
  194.     Block {
  195.       BlockType       Sum
  196.       Name       "Sum"
  197.       Ports       [2, 1, 0, 0, 0]
  198.       Position       [85, 120, 105, 140]
  199.       ShowName       off
  200.       IconShape       "round"
  201.       Inputs       "|+-"
  202.       SaturateOnIntegerOverflow on
  203.     }
  204.     Block {
  205.       BlockType       TransferFcn
  206.       Name       "Transfer Fcn"
  207.       Position       [330, 104, 435, 156]
  208.       Numerator       "[50 50]"
  209.       Denominator       "[1 1 1]"
  210.     }
  211.     Block {
  212.       BlockType       TransferFcn
  213.       Name       "Transfer Fcn1"
  214.       Position       [275, 109, 300, 151]
  215.       Numerator       "[1]"
  216.       Denominator       "[1 0]"
  217.     }
  218.     Block {
  219.       BlockType       Outport
  220.       Name       "NCD Outport"
  221.       Position       [495, 149, 550, 211]
  222.       DropShadow       on
  223.       OpenFcn       "optblock"
  224.       Port       "1"
  225.       OutputWhenDisabled      "held"
  226.       InitialOutput       "0"
  227.       MaskType       "NCD Outport"
  228.       MaskDisplay       "plot([0:10],[-.5 1.5 .6 1.3 .8 1.1 .95 1.02 .99"
  229. " 1 1]);ndisp('\n\n NCD\n OutPort 1');                         "
  230.       MaskIconFrame       on
  231.       MaskIconOpaque       on
  232.       MaskIconRotate       "none"
  233.       MaskIconUnits       "autoscale"
  234.     }
  235.     Line {
  236.       SrcBlock       "Sum"
  237.       SrcPort       1
  238.       DstBlock       "PID Controller"
  239.       DstPort       1
  240.     }
  241.     Line {
  242.       SrcBlock       "Step"
  243.       SrcPort       1
  244.       DstBlock       "Sum"
  245.       DstPort       1
  246.     }
  247.     Line {
  248.       SrcBlock       "Transfer Fcn"
  249.       SrcPort       1
  250.       Points       [15, 0]
  251.       Branch {
  252. Points [0, 80; -360, 0]
  253. DstBlock "Sum"
  254. DstPort 2
  255.       }
  256.       Branch {
  257. Points [15, 0]
  258. Branch {
  259.   Points   [0, 50]
  260.   DstBlock   "NCD Outport"
  261.   DstPort   1
  262. }
  263. Branch {
  264.   Points   [0, -25]
  265.   DstBlock   "Scope"
  266.   DstPort   1
  267. }
  268.       }
  269.     }
  270.     Line {
  271.       SrcBlock       "PID Controller"
  272.       SrcPort       1
  273.       DstBlock       "Saturation"
  274.       DstPort       1
  275.     }
  276.     Line {
  277.       SrcBlock       "Transfer Fcn1"
  278.       SrcPort       1
  279.       DstBlock       "Transfer Fcn"
  280.       DstPort       1
  281.     }
  282.     Line {
  283.       SrcBlock       "Saturation"
  284.       SrcPort       1
  285.       DstBlock       "Transfer Fcn1"
  286.       DstPort       1
  287.     }
  288.   }
  289. }