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

📄 vectrc.mdl

📁 这是我参考做的模型其中有三个文件:一个是初始化文件
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [350, 135, 370, 155]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [355, 250, 375, 270]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Scope
      Name		      "T"
      Ports		      [1]
      Position		      [850, 204, 880, 236]
      Location		      [183, 271, 654, 586]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5"
      YMin		      "-1750"
      YMax		      "1750"
      SaveToWorkspace	      on
      SaveName		      "Tei"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Step
      Name		      "TL"
      Position		      [555, 140, 585, 170]
      Time		      ".1"
      SampleTime	      "0"
    }
    Block {
      BlockType		      TransferFcn
      Name		      "Transfer Fcn"
      Position		      [640, 272, 700, 308]
      Numerator		      "[Lm]"
      Denominator	      "[Lr/Rr 1]"
    }
    Block {
      BlockType		      Scope
      Name		      "Wr"
      Ports		      [1]
      Position		      [850, 149, 880, 181]
      Location		      [6, 62, 495, 358]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5"
      YMin		      "-10"
      YMax		      "180"
      SaveToWorkspace	      on
      SaveName		      "Wr"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Step
      Name		      "Wr*"
      Position		      [120, 130, 150, 160]
      Time		      ".5"
      After		      "150"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "flux"
      Ports		      [1]
      Position		      [735, 274, 765, 306]
      Location		      [480, 66, 1002, 365]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "5"
      YMin		      "3.69"
      YMax		      "3.8"
      SaveToWorkspace	      on
      SaveName		      "flux"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "id* Calculation"
      Ports		      [1, 1]
      Position		      [210, 74, 260, 106]
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      System {
	Name			"id* Calculation"
	Location		[446, 119, 869, 283]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Phir*"
	  Position		  [25, 38, 55, 52]
	}
	Block {
	  BlockType		  Gain
	  Name			  "KF"
	  Position		  [80, 29, 140, 61]
	  Gain			  "1/160.8e-3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Im*"
	  Position		  [165, 38, 195, 52]
	}
	Line {
	  SrcBlock		  "Phir*"
	  SrcPort		  1
	  DstBlock		  "KF"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "KF"
	  SrcPort		  1
	  DstBlock		  "Im*"
	  DstPort		  1
	}
	Annotation {
	  Name			  "Lm= 160.8 mH"
	  Position		  [84, 118]
	}
	Annotation {
	  Name			  "Id* = Phir*/ Lm "
	  Position		  [89, 98]
	}
      }
    }
    Block {
      BlockType		      "S-Function"
      Name		      "motor model"
      Ports		      [1, 1]
      Position		      [640, 83, 705, 167]
      BackgroundColor	      "yellow"
      FunctionName	      "motor"
    }
    Line {
      SrcBlock		      "id* Calculation"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Sum1"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Wr*"
      SrcPort		      1
      Points		      [0, 0; 5, 0]
      Branch {
	DstBlock		"Sum"
	DstPort			1
      }
      Branch {
	Points			[0, 225; 640, 0]
	DstBlock		"Mux4"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      DstBlock		      "PID Controller1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "PID Controller"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PID Controller"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Sum2"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      DstBlock		      "PID Controller2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [0, 60]
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      DstBlock		      "Sum3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "2R/2S"
      SrcPort		      1
      DstBlock		      "Mux3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux3"
      SrcPort		      1
      DstBlock		      "motor model"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum3"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "2R/2S"
      SrcPort		      2
      DstBlock		      "Mux3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[0, -130]
	DstBlock		"2R/2S"
	DstPort			3
      }
      Branch {
	Points			[105, 0]
	DstBlock		"2S/2R"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "2S/2R"
      SrcPort		      2
      Points		      [-30, 0]
      Branch {
	Points			[-105, 0]
	DstBlock		"Sum2"
	DstPort			2
      }
      Branch {
	Points			[0, 105]
	DstBlock		"Mux5"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "2S/2R"
      SrcPort		      1
      Points		      [-15, 0]
      Branch {
	Points			[-150, 0]
	DstBlock		"Sum1"
	DstPort			2
      }
      Branch {
	Points			[0, 90]
	Branch {
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 20]
	  DstBlock		  "Mux5"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Phir*"
      SrcPort		      1
      DstBlock		      "id* Calculation"
      DstPort		      1
    }
    Line {
      SrcBlock		      "motor model"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "TL"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Mux3"
	DstPort			3
      }
      Branch {
	Points			[0, 75]
	DstBlock		"Mux2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "2s/3s"
      SrcPort		      1
      DstBlock		      "IABC"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PID Controller1"
      SrcPort		      1
      DstBlock		      "2R/2S"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PID Controller2"
      SrcPort		      1
      Points		      [15, 0; 0, -35]
      DstBlock		      "2R/2S"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux5"
      SrcPort		      1
      DstBlock		      "Imt"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	DstBlock		"2s/3s"
	DstPort			1
      }
      Branch {
	Points			[0, 115]
	DstBlock		"2S/2R"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      Points		      [50, 0]
      Branch {
	DstBlock		"2s/3s"
	DstPort			2
      }
      Branch {
	Points			[-20, 0; 0, 105]
	DstBlock		"2S/2R"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [50, 0; 0, 10]
      Branch {
	DstBlock		"Mux4"
	DstPort			1
      }
      Branch {
	Points			[0, 205; -420, 0]
	Branch {
	  DstBlock		  "Sum3"
	  DstPort		  2
	}
	Branch {
	  Points		  [-175, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Transfer Fcn"
      SrcPort		      1
      DstBlock		      "flux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "T"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      4
      Points		      [5, 0; 0, 35]
      DstBlock		      "Mux2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux4"
      SrcPort		      1
      DstBlock		      "Wr"
      DstPort		      1
    }
    Annotation {
      Name		      "It*"
      Position		      [349, 132]
    }
    Annotation {
      Name		      "Ws*"
      Position		      [353, 249]
    }
    Annotation {
      Name		      "Um*"
      Position		      [423, 78]
    }
    Annotation {
      Name		      "Ut*"
      Position		      [422, 113]
    }
    Annotation {
      Name		      "Im*"
      Position		      [316, 72]
    }
    Annotation {
      Name		      "Wr"
      Position		      [378, 343]
    }
    Annotation {
      Name		      "Ia"
      Position		      [745, 67]
    }
    Annotation {
      Name		      "Ib"
      Position		      [743, 95]
    }
  }
}

⌨️ 快捷键说明

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