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

📄 dcrec0.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  Value			  "16.6459"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "model"
	  Ports			  []
	  Position		  [57, 218, 151, 272]
	  ForegroundColor	  "darkGreen"
	  DropShadow		  on
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MaskDisplay		  "disp('MATHEMATICAL\\nMODEL')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "model"
	    Location		    [529, 461, 829, 620]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Annotation {
	      Name		      " Electrical  system equation: \n       "
"     va = Ra.ia + La.dia/dt + ea\n                  where  ea = K.wm\n       "
"     \n Mechanical system equation:\n             Te = J.dwm/dt + Tl.signum(w"
"m) + f(wm)\n                   where Te = K.ia                     "
	      Position		      [20, 30]
	      HorizontalAlignment     "left"
	      VerticalAlignment	      "top"
	      FontName		      "Arial"
	      FontSize		      12
	    }
	    Annotation {
	      Name		      "Mathematical model of the dc machine "
	      Position		      [154, 17]
	      ForegroundColor	      "blue"
	      FontSize		      12
	      FontWeight	      "bold"
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "wmo"
	  Position		  [395, 87, 450, 103]
	  Value			  "78.0721"
	}
	Block {
	  BlockType		  Outport
	  Name			  "ia"
	  Position		  [245, 15, 275, 30]
	  Orientation		  "up"
	}
	Block {
	  BlockType		  Outport
	  Name			  "wm"
	  Position		  [525, 15, 555, 30]
	  Orientation		  "up"
	  Port			  "2"
	}
	Line {
	  Name			  "ea"
	  Labels		  [2, 0]
	  SrcBlock		  "Kv"
	  SrcPort		  1
	  Points		  [-206, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Ra"
	  SrcPort		  1
	  Points		  [-80, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  Name			  "Te"
	  Labels		  [1, 0]
	  SrcBlock		  "Kt"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  Name			  "Tf"
	  Labels		  [0, 0]
	  SrcBlock		  "Bm"
	  SrcPort		  1
	  Points		  [-55, 0]
	  DstBlock		  "Sum1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "1/La"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/La"
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  Name			  "ia"
	  Labels		  [1, 0]
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [0, 80]
	    DstBlock		    "Ra"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 0]
	    Branch {
	      DstBlock		      "Kt"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "ia"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "1/J"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "1/J"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
	Line {
	  Name			  "wm"
	  Labels		  [2, 0]
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  Points		  [0, -10; 35, 0]
	  Branch {
	    Points		    [0, 80]
	    Branch {
	      DstBlock		      "Bm"
	      DstPort		      1
	    }
	    Branch {
	      Points		      [0, 45]
	      DstBlock		      "Kv"
	      DstPort		      1
	    }
	  }
	  Branch {
	    DstBlock		    "wm"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "va"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [9, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "iao"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "wmo"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  2
	}
	Annotation {
	  Name			  "BLOCK DIAGRAM MODEL OF A DC MOTOR"
	  Position		  [302, 241]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Fourier"
      Ports		      []
      Position		      [341, 216, 414, 259]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      OpenFcn		      "fourierdec"
      ShowPortLabels	      off
      TreatAsAtomicUnit	      off
      MaskHelp		      "Fourier series decomposition"
      MaskDisplay	      "disp('FOURIER')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Fourier"
	Location		[158, 561, 522, 661]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "To obtain the Fourier decomposition of a pe"
"riodic signal:\na) run a simulation for one period duration\nb) Specify the f"
"undamental frequency\n    c) Specify the number of harmonics\n"
	  Position		  [187, 48]
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Info"
      Ports		      []
      Position		      [180, 226, 226, 256]
      BackgroundColor	      "yellow"
      DropShadow	      on
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('INFO')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Info"
	Location		[177, 593, 511, 690]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Annotation {
	  Name			  "This demo simulates the running of a DC mot"
"or\nwith controlled (thyristor) line rectification\n(5 hp 240V 1200 rpm)\nrat"
"ed torque Tr = 30 N.m]"
	  Position		  [171, 49]
	  FontName		  "Arial"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [85, 66, 90, 104]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [295, 77, 325, 108]
    }
    Block {
      BlockType		      Signum
      Name		      "Sign"
      Position		      [235, 70, 265, 100]
    }
    Block {
      BlockType		      ToWorkspace
      Name		      "To Workspace1"
      Position		      [500, 220, 530, 250]
      ShowName		      off
      VariableName	      "h"
      MaxDataPoints	      "1"
      SampleTime	      "-1"
      SaveFormat	      "Array"
    }
    Block {
      BlockType		      Gain
      Name		      "Tr"
      Position		      [380, 139, 415, 171]
      Gain		      "30"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Vr"
      Position		      [345, 75, 420, 115]
      Gain		      "240*sqrt(2)"
      Port {
	PortNumber		1
	Name			"va"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "current"
      Ports		      [1]
      Position		      [630, 79, 660, 111]
      ForegroundColor	      "green"
      Location		      [549, 511, 1124, 772]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.01"
      YMin		      "8"
      YMax		      "18"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Constant
      Name		      "delay"
      Position		      [15, 60, 45, 90]
      Value		      "pi/4"
    }
    Block {
      BlockType		      Step
      Name		      "l_pul"
      Position		      [325, 140, 355, 170]
      Time		      "0.1"
      Before		      "1"
      SampleTime	      "0"
      Port {
	PortNumber		1
	Name			"Tl"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Constant
      Name		      "number of\nharmonics"
      Position		      [445, 220, 475, 250]
      ForegroundColor	      "red"
      Value		      "20"
    }
    Block {
      BlockType		      Fcn
      Name		      "sin"
      Position		      [125, 146, 195, 174]
      Expr		      "sin(2*pi*50*u)"
    }
    Block {
      BlockType		      Fcn
      Name		      "sindel"
      Position		      [115, 71, 210, 99]
      Expr		      "sin(2*pi*50*u(2)-u(1))"
    }
    Block {
      BlockType		      Scope
      Name		      "speed"
      Ports		      [1]
      Position		      [630, 139, 660, 171]
      ForegroundColor	      "green"
      Location		      [36, 133, 544, 447]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.01"
      YMin		      "78"
      YMax		      "78.08"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "voltage"
      Ports		      [1]
      Position		      [630, 19, 660, 51]
      ForegroundColor	      "green"
      Location		      [551, 137, 1120, 445]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.01"
      YMin		      "-250"
      YMax		      "350"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Outport
      Name		      "f"
      Position		      [345, 28, 375, 42]
    }
    Block {
      BlockType		      Outport
      Name		      "f1"
      Position		      [595, 58, 625, 72]
      Port		      "2"
    }
    Line {
      SrcBlock		      "Sign"
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      SrcBlock		      "sindel"
      SrcPort		      1
      DstBlock		      "Sign"
      DstPort		      1
    }
    Line {
      SrcBlock		      "sin"
      SrcPort		      1
      Points		      [75, 0; 0, -60]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "sindel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[0, -35]
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	Points			[0, 30]
	DstBlock		"sin"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "delay"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      Name		      "va"
      SrcBlock		      "Vr"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Labels			[2, 0]
	Points			[0, -60]
	DstBlock		"voltage"
	DstPort			1
      }
      Branch {
	DstBlock		"DC \nMOTOR1"
	DstPort			1
      }
    }
    Line {
      Name		      "Tl"
      SrcBlock		      "l_pul"
      SrcPort		      1
      DstBlock		      "Tr"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"Vr"
	DstPort			1
      }
      Branch {
	DstBlock		"f"
	DstPort			1
      }
    }
    Line {
      Name		      "wm"
      Labels		      [1, 0]
      SrcBlock		      "DC \nMOTOR1"
      SrcPort		      2
      DstBlock		      "speed"
      DstPort		      1
    }
    Line {
      SrcBlock		      "number of\nharmonics"
      SrcPort		      1
      DstBlock		      "To Workspace1"
      DstPort		      1
    }
    Line {
      Name		      "ia"
      Labels		      [0, 0]
      SrcBlock		      "DC \nMOTOR1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Labels			[1, 0]
	DstBlock		"current"
	DstPort			1
      }
      Branch {
	DstBlock		"f1"
	DstPort			1
      }
    }
    Line {
      Name		      "Tl"
      Labels		      [-1, 1]
      SrcBlock		      "Tr"
      SrcPort		      1
      DstBlock		      "DC \nMOTOR1"
      DstPort		      2
    }
    Annotation {
      Name		      "Controlled line rectifier"
      Position		      [199, 35]
      ForegroundColor	      "blue"
      FontSize		      16
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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