⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sfun_controller.mdl

📁 直流电机控制MATLAB仿真(国外文献)含金量高
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	      ExtMode		      off
	      ExtModeStaticAlloc      off
	      ExtModeTesting	      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTransport	      0
	      ExtModeMexFile	      "ext_comm"
	      RTWCAPISignals	      off
	      RTWCAPIParams	      off
	      RTWCAPIStates	      off
	      GenerateASAP2	      off
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      SimulationMode	      "normal"
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "sfun_controller"
    Location		    [522, 332, 1102, 633]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "Controller"
      Ports		      [2, 1]
      Position		      [15, 15, 100, 135]
      ForegroundColor	      "red"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      MaskDescription	      "Real-Time Workshop generated S-function."
      MaskHelp		      "helpview([docroot,'\\toolbox\\rtw\\helptargets."
"map'],'rtw_Sfunc_target');"
      MaskPromptString	      "FeedForwardGain_Gain:|Observer_A:|Observer_B:|O"
"bserver_C:|Observer_X0:|L2_Gain:|DiscreteTimeIntegrator_g:|DiscreteTimeIntegr"
"ator_I:|IntegralGain_Gain:"
      MaskStyleString	      "edit,edit,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,"
      MaskVariables	      "sfcnParam1=@1sfcnParam2=@2sfcnParam3=@3sfcnPara"
"m4=@4sfcnParam5=@5sfcnParam6=@6sfcnParam7=@7sfcnParam8=@8sfcnParam9=@9"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "[4.7404255319148935E-004]|reshape([5.6519922991"
"762439E-001, -3.1545694600168372E+002, 4.3468756184742285E-001, 7.77591075747"
"79919E+003, 8.4815132777215838E-005, 5.2811102380642339E-001, 1.5179232578567"
"357E-005, 4.2692973954982022E-001, 4.6188251358167121E-002, -1.19270828425292"
"17E+001, 9.5369270306434817E-001, -8.2623559685140265E+002, 1.612887672201298"
"4E-006, -1.8175544311664772E-002, 9.8381157181503577E-005, 9.5463617539269618"
"E-001], 16, 1)|reshape([1.8627622619295068E+000, -7.4604538114763091E+003, 1."
"0123909125948543E-004, 4.4959236643756340E-002, 3.5423233922178075E-002, 8.38"
"16267969393209E+002, 9.1060246527764073E-007, 6.3539368918967970E-002], 8, 1)"
"|reshape([1.0, 1.0, 1.0, 1.0], 4, 1)|[0.0]|[5.4258780585746638E-002, -3.94881"
"05237189084E+003, 4.9202309477406510E-002, 4.0207442442817123E+003]|[0.0001]|"
"[0.0]|[-1.9530687870361314E+000]"
      MaskTabNameString	      ",,,,,,,,"
      System {
	Name			"Controller"
	Location		[480, 85, 1060, 386]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "trajectory"
	  Position		  [95, 35, 115, 55]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Encoder"
	  Position		  [95, 55, 115, 75]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  "Controller_sfcn"
	  Ports			  [2, 1]
	  Position		  [400, 35, 700, 75]
	  BackgroundColor	  "darkGreen"
	  CopyFcn		  "set_param(gcb,'LinkStatus','none');"
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	  FunctionName		  "Controller_sf"
	  Parameters		  "sfcnParam1, sfcnParam2, sfcnParam3, sfcnPar"
"am4, sfcnParam5, sfcnParam6, sfcnParam7, sfcnParam8, sfcnParam9"
	  SFunctionModules	  "   "
	  MaskDescription	  "Real-Time Workshop generated S-function."
	  MaskHelp		  "helpview([docroot,'\\toolbox\\rtw\\helptarg"
"ets.map'],'rtw_Sfunc_target');"
	  MaskPromptString	  "Generated S-function name (model_sf):|Show "
"module list|FeedForwardGain_Gain:|Observer_A:|Observer_B:|Observer_C:|Observe"
"r_X0:|L2_Gain:|DiscreteTimeIntegrator_g:|DiscreteTimeIntegrator_I:|IntegralGa"
"in_Gain:"
	  MaskStyleString	  "edit,checkbox,edit,edit,edit,edit,edit,edit"
",edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskCallbackString	  "||||||||||"
	  MaskEnableString	  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on,on,on,on,on,on,on"
	  MaskVarAliasString	  ",,,,,,,,,,"
	  MaskVariables		  "rtw_sf_name=&1;showVar=@2;sfcnParam1=@3;sfc"
"nParam2=@4;sfcnParam3=@5;sfcnParam4=@6;sfcnParam5=@7;sfcnParam6=@8;sfcnParam7"
"=@9;sfcnParam8=@10;sfcnParam9=@11;"
	  MaskInitialization	  "displist = '';\nif ~strcmp(get_param(gcb, '"
"FunctionName'), rtw_sf_name);\n  set_param(gcb, 'FunctionName', rtw_sf_name);"
"\nend\n% Check if we are generating RTW code\nrtw_mode = false;\nif strcmpi(g"
"et_param(bdroot(gcb),'SimulationStatus'),'Initializing')\n	rtw_mode = "
"strcmpi(get_param(bdroot(gcb),'BuildingRTWCode'),'on') && ...\n	"
"	~strcmpi(get_param(bdroot(gcb),'TargetStyle'),'SimulationTarget');\ne"
"nd\nif showVar || rtw_mode\n	if exist('rtwsfunc') == 2 | exist('rtwsfu"
"nc') == 6\n		tmplist = rtwsfunc(rtw_sf_name,gcb);\n	"
"	tmplist = ['\\nList of Modules:\\n', tmplist];\n	elseif showVa"
"r\n		tmplist = '\\nList of Modules:\\nRTW not licensed\\n';\n "
"	end\nend\nif showVar\n  displist = tmplist;\nend"
	  MaskDisplay		  "\nport_label('input',1,'trajectory');\nport"
"_label('input',2,'Encoder');\nport_label('output',1,'U');"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "Controller_sf|off|sfcnParam1|sfcnParam2|sfc"
"nParam3|sfcnParam4|sfcnParam5|sfcnParam6|sfcnParam7|sfcnParam8|sfcnParam9"
	  MaskTabNameString	  ",,,,,,,,,,"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "__InputSSForSFun__"
	  Ports			  [2, 2]
	  Position		  [200, 35, 300, 75]
	  PermitHierarchicalResolution "ExplicitOnly"
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  System {
	    Name		    "__InputSSForSFun__"
	    Location		    [480, 85, 1060, 386]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "trajectory"
	      Position		      [70, 30, 90, 40]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Encoder"
	      Position		      [70, 60, 90, 70]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "__UniqueOutportName__1__"
	      Position		      [395, 25, 415, 45]
	      ShowName		      off
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "__UniqueOutportName__2__"
	      Position		      [395, 55, 415, 75]
	      ShowName		      off
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "trajectory"
	      SrcPort		      1
	      DstBlock		      "__UniqueOutportName__1__"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Encoder"
	      SrcPort		      1
	      DstBlock		      "__UniqueOutportName__2__"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "__OutputSSForSFun__"
	  Ports			  [1, 1]
	  Position		  [800, 35, 900, 75]
	  PermitHierarchicalResolution "ExplicitOnly"
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  System {
	    Name		    "__OutputSSForSFun__"
	    Location		    [480, 85, 1060, 386]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "__UniqueInportName__1__"
	      Position		      [100, 45, 120, 65]
	      ShowName		      off
	      IconDisplay	      "Port number"
	      Port {
		PortNumber		1
		Name			"U"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "U"
	      Position		      [225, 50, 245, 60]
	      IconDisplay	      "Port number"
	      PortDimensions	      "1"
	      SampleTime	      "[0.0001 0]"
	      DataType		      "double"
	    }
	    Line {
	      Name		      "U"
	      Labels		      [0, 0]
	      SrcBlock		      "__UniqueInportName__1__"
	      SrcPort		      1
	      DstBlock		      "U"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "U"
	  Position		  [1005, 45, 1025, 65]
	  IconDisplay		  "Port number"
	  PortDimensions	  "1"
	  SampleTime		  "[0.0001 0]"
	  DataType		  "double"
	}
	Line {
	  SrcBlock		  "trajectory"
	  SrcPort		  1
	  DstBlock		  "__InputSSForSFun__"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Encoder"
	  SrcPort		  1
	  DstBlock		  "__InputSSForSFun__"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "__InputSSForSFun__"
	  SrcPort		  1
	  DstBlock		  "Controller_sfcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "__InputSSForSFun__"
	  SrcPort		  2
	  DstBlock		  "Controller_sfcn"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Controller_sfcn"
	  SrcPort		  1
	  DstBlock		  "__OutputSSForSFun__"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "__OutputSSForSFun__"
	  SrcPort		  1
	  DstBlock		  "U"
	  DstPort		  1
	}
      }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -