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

📄 vectrc.mdl

📁 这是我参考做的模型其中有三个文件:一个是初始化文件
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [135, 87, 170, 113]
	  Expr			  " -sin(u(3))*u(1)+cos(u(3))*u(2)"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  Ports			  [3, 1]
	  Position		  [80, 27, 95, 163]
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Im*"
	  Position		  [195, 38, 225, 52]
	}
	Block {
	  BlockType		  Outport
	  Name			  "It*"
	  Position		  [195, 93, 225, 107]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "theta"
	  SrcPort		  1
	  DstBlock		  "Mux4"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  DstBlock		  "It*"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ib*"
	  SrcPort		  1
	  DstBlock		  "Mux4"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ia*"
	  SrcPort		  1
	  DstBlock		  "Mux4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  DstBlock		  "Im*"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux4"
	  SrcPort		  1
	  Points		  [0, -20; 5, 0]
	  Branch {
	    Points		    [0, 25]
	    DstBlock		    "Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -30]
	    DstBlock		    "Fcn"
	    DstPort		    1
	  }
	}
	Annotation {
	  Name			  "Ia*"
	  Position		  [58, 33]
	}
	Annotation {
	  Name			  "Ib*"
	  Position		  [57, 83]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "2s/3s"
      Ports		      [2, 1]
      Position		      [785, 65, 825, 125]
      TreatAsAtomicUnit	      off
      System {
	Name			"2s/3s"
	Location		[177, 74, 797, 490]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Ialfa"
	  Position		  [25, 123, 55, 137]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ibeta"
	  Position		  [35, 188, 65, 202]
	  Port			  "2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [240, 255, 270, 285]
	  Gain			  "sqrt(3)/2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain2"
	  Position		  [235, 210, 265, 240]
	  Gain			  "-.5"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain3"
	  Position		  [150, 115, 180, 145]
	  Gain			  "sqrt(2/3)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain4"
	  Position		  [140, 180, 170, 210]
	  Gain			  "sqrt(2/3)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain6"
	  Position		  [265, 355, 295, 385]
	  Gain			  "-sqrt(3)/2"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [525, 240, 540, 300]
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [2, 1]
	  Position		  [190, 26, 205, 84]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope1"
	  Ports			  [1]
	  Position		  [270, 39, 300, 71]
	  Location		  [188, 365, 512, 604]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.2"
	  SaveName		  "ScopeData1"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [335, 215, 355, 290]
	  ShowName		  off
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [400, 315, 420, 390]
	  ShowName		  off
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	}
	Block {
	  BlockType		  Outport
	  Name			  "iABC"
	  Position		  [565, 263, 595, 277]
	}
	Line {
	  SrcBlock		  "Ialfa"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, -90]
	    DstBlock		    "Mux1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Gain3"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Ibeta"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, -125]
	    DstBlock		    "Mux1"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "Gain4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain3"
	  SrcPort		  1
	  Points		  [0, 0; 30, 0]
	  Branch {
	    Points		    [200, 0; 0, 120]
	    DstBlock		    "Mux"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 95]
	    DstBlock		    "Gain2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain6"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "Scope1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain4"
	  SrcPort		  1
	  Points		  [0, 0; 0, 75]
	  Branch {
	    DstBlock		    "Gain1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Gain6"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain2"
	  SrcPort		  1
	  Points		  [25, 0; 0, 10]
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 100]
	    DstBlock		    "Sum1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain1"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [45, 0; 0, 10; 105, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  Points		  [40, 0; 0, -65]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "iABC"
	  DstPort		  1
	}
	Annotation {
	  Name			  "iA"
	  Position		  [499, 241]
	}
	Annotation {
	  Name			  "iB"
	  Position		  [495, 275]
	}
	Annotation {
	  Name			  "iC"
	  Position		  [499, 301]
	}
      }
    }
    Block {
      BlockType		      Demux
      Name		      "Demux"
      Ports		      [1, 4]
      Position		      [725, 65, 730, 185]
      BackgroundColor	      "black"
      ShowName		      off
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [310, 245, 335, 275]
      Expr		      "u(1)*Rr/(u(2)*Lr)"
    }
    Block {
      BlockType		      Scope
      Name		      "IABC"
      Ports		      [1]
      Position		      [850, 79, 880, 111]
      Location		      [134, 217, 606, 680]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "2.5"
      YMin		      "-40"
      YMax		      "40"
      SaveToWorkspace	      on
      SaveName		      "IABC"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Imt"
      Ports		      [1]
      Position		      [845, 309, 875, 341]
      Location		      [6, 381, 475, 724]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5"
      YMin		      "-50"
      YMax		      "950"
      SaveToWorkspace	      on
      SaveName		      "Imt"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [1, 1]
      Position		      [400, 245, 430, 275]
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [266, 190, 299, 195]
      Orientation	      "down"
      NamePlacement	      "alternate"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [820, 194, 825, 241]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [3, 1]
      Position		      [610, 78, 620, 172]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux4"
      Ports		      [2, 1]
      Position		      [815, 139, 820, 186]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux5"
      Ports		      [2, 1]
      Position		      [600, 299, 605, 346]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "PID Controller"
      Ports		      [1, 1]
      Position		      [225, 130, 255, 160]
      SourceBlock	      "simulink_extras/Additional\nLinear/PID Controll"
"er"
      SourceType	      "PID Controller"
      P			      "25"
      I			      "5"
      D			      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "PID Controller1"
      Ports		      [1, 1]
      Position		      [355, 75, 385, 105]
      SourceBlock	      "simulink_extras/Additional\nLinear/PID Controll"
"er"
      SourceType	      "PID Controller"
      P			      "70"
      I			      "10"
      D			      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "PID Controller2"
      Ports		      [1, 1]
      Position		      [395, 130, 425, 160]
      SourceBlock	      "simulink_extras/Additional\nLinear/PID Controll"
"er"
      SourceType	      "PID Controller"
      P			      "6"
      I			      "15"
      D			      "0"
    }
    Block {
      BlockType		      Constant
      Name		      "Phir*"
      Position		      [145, 78, 175, 102]
      NamePlacement	      "alternate"
      Value		      "0.54"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [180, 135, 200, 155]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [320, 80, 340, 100]
      ShowName		      off

⌨️ 快捷键说明

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