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

📄 power_windgen.mdl

📁 风机建模的仿真 里面有很多的模型希望可以能用上
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      Saturation	      "[ 0 0 ; 0 0 ]"
    }
    Block {
      BlockType		      BusSelector
      Name		      "Bus\nSelector"
      Ports		      [1, 1]
      Position		      [695, 81, 700, 119]
      ShowName		      off
      OutputSignals	      "Mechanical.Rotor speed (wm)"
      Port {
	PortNumber		1
	Name			"<Rotor speed (wm)>"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Discrete\nFrequency Regulator"
      Ports		      [1, 1]
      Position		      [475, 320, 545, 360]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      DropShadow	      on
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskHideContents	      off
      MaskType		      "Discrete Frequency Regulator"
      MaskDescription	      "Input : phase to ground voltages\n\nOutput : 24"
" logical signals for the control of the dump load"
      MaskPromptString	      "Reference frequency (Hz):|Regulator gains  [Kp "
"Kd]:|Phase to phase voltage (Vrms):|Sample time (s):"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVarAliasString      ",,,"
      MaskVariables	      "Freq_ref=@1;gains_regulator=@2;Vpp_nom=@3;Ts=@4"
";"
      MaskInitialization      "Vbase=Vpp_nom/sqrt(3);\nKp=gains_regulator(1);"
"\nKd=gains_regulator(2);\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "60|[255 30]|480|200e-6"
      MaskTabNameString	      ",,,"
      System {
	Name			"Discrete\nFrequency Regulator"
	Location		[119, 161, 937, 402]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Vabc"
	  Position		  [30, 98, 60, 112]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  DeadZone
	  Name			  "+/- 0.005 Hz"
	  Position		  [320, 70, 350, 100]
	  LowerValue		  "-0.005"
	  UpperValue		  "0.005"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete\n3-phase PLL"
	  Ports			  [1, 3]
	  Position		  [80, 74, 140, 136]
	  SourceBlock		  "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete\n3-phase PLL"
	  SourceType		  "Discrete 3-phase PLL"
	  ShowPortLabels	  on
	  Fmin			  "45"
	  Par_Init		  "[0 Freq_ref]"
	  ParK			  "[60 1400]"
	  Ts			  "Ts"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete\nPID Controller"
	  Ports			  [1, 1]
	  Position		  [470, 70, 500, 100]
	  SourceBlock		  "powerlib_extras/Discrete \nControl Blocks/D"
"iscrete\nPID Controller"
	  SourceType		  "Discrete PID Controller"
	  ShowPortLabels	  on
	  Kp			  "Kp"
	  Ki			  "0"
	  Kd			  "Kd"
	  TcD			  "0.5e-3"
	  Par_Limits		  "[255 0]"
	  Init			  "0"
	  Ts			  "Ts"
	}
	Block {
	  BlockType		  DiscreteIntegrator
	  Name			  "Discrete-Time\nIntegrator"
	  Ports			  [1, 1]
	  Position		  [390, 65, 425, 105]
	  IntegratorMethod	  "Integration: Forward Euler"
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  SampleTime		  "Ts"
	  LimitOutput		  on
	  UpperSaturationLimit	  "1"
	  LowerSaturationLimit	  "0"
	  IgnoreLimit		  off
	  ICPrevOutput		  "DiscIntNeverNeededParam"
	  ICPrevScaledInput	  "DiscIntNeverNeededParam"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto1"
	  Position		  [200, 42, 260, 58]
	  ShowName		  off
	  GotoTag		  "Freq"
	  TagVisibility		  "global"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Pulses\nDecoder"
	  Ports			  [1, 1]
	  Position		  [530, 59, 590, 111]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  MaskType		  "Pulses Decoder"
	  MaskDescription	  "Decode the scalar input 'Code' into a vecto"
"r output 'Pulses' based on  the specified number of bits to decode.\n(Element"
" 1 of vector output = least significant bit)\n"
	  MaskPromptString	  "Number of bits to decode:"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "n=@1;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "8"
	  System {
	    Name		    "Pulses\nDecoder"
	    Location		    [303, 93, 861, 270]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Code"
	      Position		      [40, 53, 70, 67]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant"
	      Position		      [85, 71, 170, 99]
	      ShowName		      off
	      Value		      "pow2(0:-1:-(n-1))"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant6"
	      Position		      [305, 91, 325, 109]
	      ShowName		      off
	      Value		      "2"
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Math\nFunction"
	      Ports		      [2, 1]
	      Position		      [355, 63, 385, 112]
	      ShowName		      off
	      Operator		      "rem"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [195, 46, 225, 99]
	      ShowName		      off
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Rounding
	      Name		      "Rounding\nFunction"
	      Position		      [260, 60, 290, 90]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Pulses"
	      Position		      [435, 83, 465, 97]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "Math\nFunction"
	      SrcPort		      1
	      DstBlock		      "Pulses"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Rounding\nFunction"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant6"
	      SrcPort		      1
	      DstBlock		      "Math\nFunction"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Rounding\nFunction"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Code"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Reference\nFrequency"
	  Position		  [200, 109, 260, 131]
	  Value			  "Freq_ref"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Sampling system"
	  Ports			  [1, 1]
	  Position		  [615, 71, 735, 99]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "Sampling system"
	    Location		    [91, 74, 893, 583]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "BITA0_7"
	      Position		      [230, 153, 260, 167]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      " Bit ABC4"
	      Ports		      [1, 1]
	      Position		      [575, 266, 615, 304]
	      Elements		      "[13 14 15]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC0"
	      Ports		      [1, 1]
	      Position		      [575, 46, 615, 84]
	      Elements		      "[1 2 3]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC1"
	      Ports		      [1, 1]
	      Position		      [575, 101, 615, 139]
	      Elements		      "[4 5 6]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC2"
	      Ports		      [1, 1]
	      Position		      [575, 156, 615, 194]
	      Elements		      "[7 8 9]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC3"
	      Ports		      [1, 1]
	      Position		      [575, 211, 615, 249]
	      Elements		      "[10 11 12]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC5"
	      Ports		      [1, 1]
	      Position		      [575, 321, 615, 359]
	      Elements		      "[16 17 18]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC6"
	      Ports		      [1, 1]
	      Position		      [575, 376, 615, 414]
	      Elements		      "[19 20 21]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Bit ABC7"
	      Ports		      [1, 1]
	      Position		      [575, 431, 615, 469]
	      Elements		      "[22 23 24]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      "Demux"
	      Ports		      [1, 3]
	      Position		      [155, 188, 160, 342]
	      BackgroundColor	      "black"
	      ShowName		      off
	      Outputs		      "3"
	    }
	    Block {
	      BlockType		      From
	      Name		      "From4"
	      Position		      [75, 255, 135, 275]
	      ShowName		      off
	      CloseFcn		      "tagdialog Close"
	      GotoTag		      "Vabc_SL"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux"
	      Ports		      [3, 1]
	      Position		      [480, 246, 485, 284]
	      ShowName		      off
	      Inputs		      "3"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux1"
	      Ports		      [8, 1]
	      Position		      [685, 29, 690, 486]
	      ShowName		      off
	      Inputs		      "8"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector"
	      Ports		      [1, 1]
	      Position		      [500, 246, 540, 284]
	      Elements		      "[1 9 17 2 10 18 3 11 19 4 12 20 5 13 21"
" 6 14 22 7 15 23 8 16 24]"
	      InputPortWidth	      "24"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [350, 155, 380, 185]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch1"
	      Position		      [350, 250, 380, 280]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch2"
	      Position		      [350, 350, 380, 380]
	      Threshold		      "0.5"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay"
	      Position		      [195, 198, 220, 232]
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay1"
	      Position		      [195, 248, 220, 282]
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay2"
	      Position		      [195, 298, 220, 332]
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay4"
	      Position		      [355, 203, 380, 237]
	      Orientation	      "left"
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay5"
	      Position		      [355, 298, 380, 332]
	      Orientation	      "left"
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      UnitDelay
	      Name		      "Unit Delay6"
	      Position		      [355, 398, 380, 432]
	      Orientation	      "left"
	      ShowName		      off
	      SampleTime	      "Ts"
	    }
	    Block {
	      BlockType		      HitCross
	      Name		      "Zero crossing"
	      Ports		      [1, 1]
	      Position		      [255, 200, 285, 230]
	      HitCrossingDirection    "either"
	    }
	    Block {
	      BlockType		      HitCross
	      Name		      "Zero crossing1"
	      Ports		      [1, 1]
	      Position		      [255, 250, 285, 280]
	      HitCrossingDirection    "either"
	    }
	    Block {
	      BlockType		      HitCross
	      Name		      "Zero crossing2"
	      Ports		      [1, 1]
	      Position		      [255, 300, 285, 330]
	      HitCrossingDirection    "either"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Pulses_ABC0_7"

⌨️ 快捷键说明

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