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

📄 threephmod.mdl

📁 this is file used for design of three phase current controller
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Switch
	      Name		      "Switch"
	      Position		      [485, 115, 515, 145]
	      		      ""
	      Threshold		      "0"
	      	      
	      	
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "um"
	      Position		      [645, 123, 675, 137]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Switch"
	      SrcPort		      1
	      DstBlock		      "Integrator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Umax"
	      SrcPort		      1
	      Points		      [0, 0; 5, 0]
	      Branch {
		Points			[0, 90]
		DstBlock		"Sum"
		DstPort			1
	      }
	      Branch {
		Points			[195, 0]
		Branch {
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 45; 270, 0; 0, 65]
		  DstBlock		  "Integrator"
		  DstPort		  2
		}
	      }
	    }
	    Line {
	      SrcBlock		      "Umin"
	      SrcPort		      1
	      Points		      [0, 0; 5, 0]
	      Branch {
		Points			[0, -100]
		DstBlock		"Sum"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Sum2"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Gain2"
	      SrcPort		      1
	      Points		      [190, 0]
	      DstBlock		      "Switch"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain1"
	      SrcPort		      1
	      Points		      [190, 0]
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Integrator"
	      SrcPort		      1
	      Points		      [0, -10; 10, 0]
	      Branch {
		Points			[0, -95]
		DstBlock		"Sum1"
		DstPort			2
	      }
	      Branch {
		Points			[0, 0]
		DstBlock		"um"
		DstPort			1
	      }
	      Branch {
		Points			[0, 105]
		DstBlock		"Sum2"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Sign"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Sign1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sign"
	      SrcPort		      1
	      Points		      [0, 10]
	      DstBlock		      "Sum3"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sign1"
	      SrcPort		      1
	      Points		      [0, -10]
	      DstBlock		      "Sum3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum3"
	      SrcPort		      1
	      DstBlock		      "Relay"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relay"
	      SrcPort		      1
	      DstBlock		      "Switch"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Product"
	      SrcPort		      1
	      Points		      [50, 0]
	      Branch {
		DstBlock		"Gain2"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Gain1"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "x"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [630, 490, 660, 510]
	  BackgroundColor	  "cyan"
	  Value			  "1"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [625, 379, 685, 401]
	  BackgroundColor	  "cyan"
	  Value			  "Random"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [430, 289, 450, 311]
	  ShowName		  off
	  Value			  "0"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [415, 253, 450, 277]
	  ShowName		  off
	  Value			  "type"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux2"
	  Ports			  [1, 3]
	  Position		  [85, 52, 90, 118]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	  BusSelectionMode	  off
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [665, 244, 715, 276]
	  BackgroundColor	  "cyan"
	  ShowName		  off
	  Gain			  "0.5"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [665, 288, 715, 322]
	  BackgroundColor	  "cyan"
	  ShowName		  off
	  Gain			  "-0.5"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [430, 395, 460, 425]
	  BackgroundColor	  "magenta"
	  Gain			  "-1.01"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain3"
	  Position		  [410, 334, 460, 366]
	  BackgroundColor	  "yellow"
	  Gain			  "0.5"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [130, 400, 160, 430]
	  BackgroundColor	  "magenta"
	  Gain			  "-1/2"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain5"
	  Position		  [130, 360, 160, 390]
	  BackgroundColor	  "magenta"
	  Gain			  "1/2"
	  Multiplication	  "Element-wise(K.*u)"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  MinMax
	  Name			  "MinMax"
	  Ports			  [1, 1]
	  Position		  [235, 221, 295, 239]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  Function		  "min"
	  Inputs		  "1"
	}
	Block {
	  BlockType		  MinMax
	  Name			  "MinMax1"
	  Ports			  [1, 1]
	  Position		  [235, 176, 295, 194]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  Function		  "max"
	  Inputs		  "1"
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch"
	  Ports			  [3, 1]
	  Position		  [770, 413, 785, 467]
	  BackgroundColor	  "cyan"
	  Inputs		  "2"
	  		  
	   
	}
	Block {
	  BlockType		  MultiPortSwitch
	  Name			  "Multiport\nSwitch1"
	  Ports			  [4, 1]
	  Position		  [495, 300, 515, 380]
	  Inputs		  "3"
	  		  
	   
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [175, 192, 210, 228]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "none"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [3, 1]
	  Position		  [815, 77, 825, 133]
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [5, 1]
	  Position		  [875, 177, 885, 233]
	  ShowName		  off
	  Inputs		  "5"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Quantizer
	  Name			  "Quantizer"
	  Position		  [700, 425, 730, 455]
	  BackgroundColor	  "cyan"
	  QuantizationInterval	  "1"
	  LinearizeAsGain	  on
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [740, 45, 770, 75]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  OnSwitchValue		  "eps"
	  OffSwitchValue	  "eps"
	  OnOutputValue		  "1"
	  OffOutputValue	  "-1"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay1"
	  Position		  [740, 90, 770, 120]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  OnSwitchValue		  "eps"
	  OffSwitchValue	  "eps"
	  OnOutputValue		  "1"
	  OffOutputValue	  "-1"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay2"
	  Position		  [740, 135, 770, 165]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  OnSwitchValue		  "eps"
	  OffSwitchValue	  "eps"
	  OnOutputValue		  "1"
	  OffOutputValue	  "-1"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope"
	  Ports			  [1]
	  Position		  [855, 394, 885, 426]
	  Floating		  off
	  Location		  [326, 243, 748, 498]
	  Open			  off
	  NumInputPorts		  "1"
	  TickLabels		  "OneTimeTick"
	  ZoomMode		  "on"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  List {
	    axes1		    ""
	  }
	  Grid			  "on"
	  TimeRange		  "auto"
	  YMin			  "-5"
	  YMax			  "5"
	  SaveToWorkspace	  off
	  SaveName		  "ScopeData2"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  on
	  MaxDataPoints		  "5000"
	  Decimation		  "1"
	  SampleInput		  off
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [685, 42, 715, 73]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [685, 87, 715, 118]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [2, 1]
	  Position		  [685, 132, 715, 163]
	  BackgroundColor	  "blue"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum3"
	  Ports			  [2, 1]
	  Position		  [510, 37, 540, 68]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum4"
	  Ports			  [2, 1]
	  Position		  [340, 192, 370, 223]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "++"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum5"
	  Ports			  [2, 1]
	  Position		  [510, 77, 540, 108]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum6"
	  Ports			  [2, 1]
	  Position		  [510, 117, 540, 148]
	  BackgroundColor	  "orange"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum7"
	  Ports			  [2, 1]
	  Position		  [200, 367, 230, 398]
	  BackgroundColor	  "magenta"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum8"
	  Ports			  [2, 1]
	  Position		  [200, 407, 230, 438]
	  BackgroundColor	  "magenta"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "+-"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum9"
	  Ports			  [2, 1]
	  Position		  [310, 392, 340, 423]
	  BackgroundColor	  "magenta"
	  ShowName		  off
	  IconShape		  "rectangular"
	  Inputs		  "-+"
	  SaturateOnIntegerOverflow on
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [375, 395, 405, 425]
	  BackgroundColor	  "magenta"
	  		  ""
	  Threshold		  "0"
	  		  
	   
	}
	Block {
	  BlockType		  UniformRandomNumber
	  Name			  "Uniform Random\nNumber"
	  Position		  [630, 424, 660, 456]
	  BackgroundColor	  "cyan"
	  Minimum		  "1"
	  Maximum		  "3"
	  Seed			  "0.9874"
	  SampleTime		  "Ts"
	  VectorParams1D	  on
	}
	Block {
	  BlockType		  Outport
	  Name			  "mod"
	  Position		  [920, 198, 950, 212]
	  Port			  "1"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "sa,b,c"
	  Position		  [850, 98, 880, 112]
	  Port			  "2"
	  OutputWhenDisabled	  "held"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Carrier"
	  SrcPort		  1
	  Points		  [20, 0; 0, -75]
	  Branch {
	    Points		    [-170, 0; 0, -70]
	    Branch {
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Branch {
	      Points		      [0, -45]
	      Branch {
		DstBlock		"Sum1"
		DstPort			2
	      }
	      Branch {
		Points			[0, -45]
		DstBlock		"Sum"
		DstPort			2
	      }
	    }
	  }
	  Branch {
	    DstBlock		    "Mux2"
	    DstPort		    5
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Carrier"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Carrier"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Relay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay1"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Relay1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay2"
	  SrcPort		  1
	  Points		  [0, -25]
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  DstBlock		  "Relay2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Quantizer"
	  SrcPort		  1
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Uniform Random\nNumber"
	  SrcPort		  1
	  DstBlock		  "Quantizer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [90, 0]
	  DstBlock		  "Multiport\nSwitch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Multiport\nSwitch"
	  SrcPort		  1
	  Points		  [25, 0; 0, -30]
	  Branch {
	    Points		    [0, -40; -95, 0]
	    DstBlock		    "Carrier"
	    DstPort		    3
	  }
	  Branch {
	    DstBlock		    "Scope"
	    DstPort		    1
	  }

⌨️ 快捷键说明

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