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

📄 threephmod.mdl

📁 this is file used for design of three phase current controller
💻 MDL
📖 第 1 页 / 共 3 页
字号:
Model {
  Name			  "ThreePhMod"
  Version		  4.0
  SampleTimeColors	  off
  LibraryLinkDisplay	  "all"
  WideLines		  on
  ShowLineDimensions	  on
  ShowPortDataTypes	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Thu Aug 24 11:20:18 2000"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "avo"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sun Nov 16 17:00:57 2003"
  ModelVersionFormat	  "1.%<AutoIncrement:68>"
  ConfigurationManager	  "none"
  SimParamPage		  "Solver"
  LinearizationMsg	  "none"
  Profile		  off
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  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
  ExtModeLogAll		  on
  BufferReuse		  on
  SimulationMode	  "normal"
  Solver		  "ode23"
  SolverMode		  "Auto"
  StartTime		  "-eps"
  StopTime		  "0.02"
  MaxOrder		  5
  MaxStep		  "1e-5"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "1e-6"
  FixedStep		  "0.000001"
  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	  off
  MaxDataPoints		  "1000"
  ConsistencyChecking	  "none"
  ArrayBoundsChecking	  "none"
  AlgebraicLoopMsg	  "warning"
  BlockPriorityViolationMsg "warning"
  MinStepSizeMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  MultiTaskRateTransMsg	  "error"
  SingleTaskRateTransMsg  "none"
  CheckForMatrixSingularity "none"
  IntegerOverflowMsg	  "warning"
  Int32ToFloatConvMsg	  "warning"
  UnnecessaryDatatypeConvMsg "none"
  VectorMatrixConversionMsg "none"
  SignalLabelMismatchMsg  "none"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  SfunCompatibilityCheckMsg "none"
  RTWInlineParameters	  off
  BlockReductionOpt	  off
  BooleanDataType	  off
  ParameterPooling	  on
  OptimizeBlockIOStorage  on
  ZeroCross		  on
  RTWSystemTargetFile	  "grt.tlc"
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  RTWRetainRTWFile	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  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		    "tp005653"
    Location		    [4, 74, 986, 662]
    Open		    off
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "3 phase 2 level inverter"
      Ports		      [2, 1]
      Position		      [470, 158, 605, 227]
      BackgroundColor	      "lightBlue"
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      MaskDisplay	      "plot(-30, -40, 130, 140)\nplot([0 90],[0 0],[0 "
"90],[100 100])\nplot([10 10 0 20 20 0 0],[0 35 35 35 45 45 35],[0 20 10 10],["
"55 55 55 100])\nplot([30 30],[0 40],[30 30],[60 100],[40 50 50],[50 50 -10])"
"\nplot([60 60],[0 40],[60 60],[60 100],[70 80 80],[50 50 -10])\nplot([90 90],"
"[0 40],[90 90],[60 100],[100 110 110],[50 50 -10])\ntext(35,70,'a')\ntext(65,"
"70,'b')\ntext(95,70,'c')\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"3 phase 2 level inverter"
	Location		[257, 290, 843, 629]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Udc"
	  Position		  [50, 33, 80, 47]
	  Port			  "1"
	  PortDimensions	  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "sa,b,c"
	  Position		  [20, 88, 50, 102]
	  Port			  "2"
	  PortDimensions	  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [75, 76, 80, 114]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [130, 25, 175, 55]
	  ShowName		  off
	  Gain			  "1/2"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [135, 125, 180, 155]
	  ShowName		  off
	  Gain			  "-1/2"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [357, 205, 443, 210]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [250, 75, 280, 105]
	  		  ""
	  Threshold		  "0"
	  		  
	   
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [360, 75, 390, 105]
	  		  ""
	  Threshold		  "0"
	  		  
	   
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch2"
	  Position		  [470, 75, 500, 105]
	  		  ""
	  Threshold		  "0"
	  		  
	   
	}
	Block {
	  BlockType		  Outport
	  Name			  "va,b,c"
	  Position		  [385, 235, 415, 245]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [55, 0]
	  Branch {
	    DstBlock		    "Switch"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [110, 0]
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [110, 0]
	      DstBlock		      "Switch2"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  Points		  [50, 0]
	  Branch {
	    DstBlock		    "Switch"
	    DstPort		    3
	  }
	  Branch {
	    Points		    [110, 0]
	    Branch {
	      DstBlock		      "Switch1"
	      DstPort		      3
	    }
	    Branch {
	      Points		      [110, 0]
	      DstBlock		      "Switch2"
	      DstPort		      3
	    }
	  }
	}
	Line {
	  SrcBlock		  "Udc"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "sa,b,c"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [145, 0; 0, 5]
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [130, 0; 0, -25; 110, 0; 0, 20]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [120, 0; 0, -45; 230, 0; 0, 30]
	  DstBlock		  "Switch2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [15, 0; 0, 100]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch2"
	  SrcPort		  1
	  Points		  [5, 0; 0, 100]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "va,b,c"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "3 phase 2 level modulator"
      Ports		      [2, 2]
      Position		      [265, 133, 375, 237]
      BackgroundColor	      "magenta"
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      MaskDescription	      "Carrier Wave modulator that uses  either fixed "
"frequency modulation or random  modulation.\n\nThe fixed frequency modulation"
" uses 1/(2Ts) as modulation frequency.\n\nThe random modulation selects the m"
"odulatio  frequency by random every sampling instant. The selection uses eith"
"er 1/Ts, 1/(2Ts) or 1/(3Ts) as carrier wave frequency."
      MaskPromptString	      "Sinus, Symmetrized or Minimum switch modulation"
"|Fixed or random modulation?|Sampling interval"
      MaskStyleString	      "popup(Sinus|Symmetrized|Minswitch),popup(Random"
" modulation|Fixed frequency),edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVariables	      "type=@1;Random=@2;Ts=@3;"
      MaskDisplay	      "plot(-30, -30, 130, 130)\nplot([0 0 0 100],[0 1"
"00 50 50])\n\n\nplot([0 25 50 75 100 ],[100 0 100 0 100 ])\nplot([0:5:100],[5"
"0+50.*sin([0:5:100]*2*pi/100)])\nplot([0:5:100],[50 73 89 93 92 87 92 93 89 7"
"3 50 27 10 7 8 12 8 6.9359 10 27 50])\n\n"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Sinus|Fixed frequency|Ts"
      System {
	Name			"3 phase 2 level modulator"
	Location		[-22, 87, 990, 682]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Udc"
	  Position		  [55, 368, 85, 382]
	  Port			  "1"
	  PortDimensions	  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Inport
	  Name			  "uabc*"
	  Position		  [35, 78, 65, 92]
	  Port			  "2"
	  PortDimensions	  "-1"
	  SampleTime		  "-1"
	  DataType		  "auto"
	  SignalType		  "auto"
	  Interpolate		  on
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [255, 375, 285, 395]
	  BackgroundColor	  "magenta"
	  ShowName		  off
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs1"
	  Position		  [255, 415, 285, 435]
	  BackgroundColor	  "magenta"
	  ShowName		  off
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Carrier"
	  Ports			  [3, 1]
	  Position		  [735, 251, 805, 349]
	  BackgroundColor	  "cyan"
	  ShowPortLabels	  on
	  Permissions		  "ReadWrite"
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  SimViewingDevice	  off
	  System {
	    Name		    "Carrier"
	    Location		    [80, 157, 793, 535]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Umax"
	      Position		      [25, 28, 55, 42]
	      Port		      "1"
	      PortDimensions	      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Umin"
	      Position		      [25, 228, 55, 242]
	      Port		      "2"
	      PortDimensions	      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "x"
	      Position		      [80, 158, 110, 172]
	      Port		      "3"
	      PortDimensions	      "-1"
	      SampleTime	      "-1"
	      DataType		      "auto"
	      SignalType	      "auto"
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain1"
	      Position		      [245, 145, 275, 175]
	      ShowName		      off
	      Gain		      "2*(1/2/Ts)"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain2"
	      Position		      [245, 85, 275, 115]
	      ShowName		      off
	      Gain		      "-2*(1/2/Ts)"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Integrator
	      Name		      "Integrator"
	      Ports		      [2, 1]
	      Position		      [580, 122, 610, 153]
	      ExternalReset	      "none"
	      InitialConditionSource  "external"
	      InitialCondition	      "0"
	      LimitOutput	      off
	      UpperSaturationLimit    "inf"
	      LowerSaturationLimit    "-inf"
	      ShowSaturationPort      off
	      ShowStatePort	      off
	      AbsoluteTolerance	      "auto"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [150, 123, 175, 152]
	      ShowName		      off
	      Inputs		      "2"
	      Multiplication	      "Element-wise(.*)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Relay
	      Name		      "Relay"
	      Position		      [420, 115, 450, 145]
	      OnSwitchValue	      "1"
	      OffSwitchValue	      "-1"
	      OnOutputValue	      "1"
	      OffOutputValue	      "-1"
	    }
	    Block {
	      BlockType		      Signum
	      Name		      "Sign"
	      Position		      [315, 105, 340, 125]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Signum
	      Name		      "Sign1"
	      Position		      [315, 135, 340, 155]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [2, 1]
	      Position		      [85, 120, 105, 140]
	      ShowName		      off
	      IconShape		      "rectangular"
	      Inputs		      "+-"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      Ports		      [2, 1]
	      Position		      [290, 50, 310, 70]
	      Orientation	      "down"
	      NamePlacement	      "alternate"
	      ShowName		      off
	      IconShape		      "rectangular"
	      Inputs		      "-+"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      Ports		      [2, 1]
	      Position		      [290, 200, 310, 220]
	      Orientation	      "up"
	      ShowName		      off
	      IconShape		      "rectangular"
	      Inputs		      "-+"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum3"
	      Ports		      [2, 1]
	      Position		      [365, 120, 385, 140]
	      ShowName		      off
	      IconShape		      "rectangular"
	      Inputs		      "++"

⌨️ 快捷键说明

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