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

📄 imeqvecpwm1.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      ShowName		      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Mechanical \nsystem"
      Ports		      [2, 1]
      Position		      [695, 106, 795, 224]
      ForegroundColor	      "orange"
      NamePlacement	      "alternate"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskPromptString	      "Inertia constant [s]|Torque-speed coefficient"
      MaskStyleString	      "edit,edit"
      MaskTunableValueString  "on,on"
      MaskCallbackString      "|"
      MaskEnableString	      "on,on"
      MaskVisibilityString    "on,on"
      MaskToolTipString	      "on,on"
      MaskVarAliasString      ","
      MaskVariables	      "H=@1;Bm=@2;"
      MaskDisplay	      "disp('Mechanical\\nSystem')"
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "0.3|1e-5"
      Port {
	PortNumber		1
	Name			"wm"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Mechanical \nsystem"
	Location		[519, 118, 997, 317]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"155"
	Block {
	  BlockType		  Inport
	  Name			  "Te"
	  Position		  [15, 48, 45, 62]
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tl"
	  Position		  [15, 13, 45, 27]
	  Port			  "2"
	}
	Block {
	  BlockType		  Gain
	  Name			  "1/2H"
	  Position		  [115, 37, 175, 73]
	  ShowName		  off
	  Gain			  "1/(2*H)"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Bm"
	  Position		  [145, 80, 175, 110]
	  Orientation		  "left"
	  ShowName		  off
	  Gain			  "Bm"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [1, 1]
	  Position		  [195, 39, 225, 71]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [3, 1]
	  Position		  [70, 45, 90, 65]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "-+-"
	}
	Block {
	  BlockType		  Outport
	  Name			  "wm"
	  Position		  [270, 48, 300, 62]
	}
	Line {
	  SrcBlock		  "1/2H"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "1/2H"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Bm"
	  SrcPort		  1
	  Points		  [-60, 0]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "Bm"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "wm"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Te"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Tl"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [625, 319, 630, 381]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux6"
      Ports		      [2, 1]
      Position		      [730, 31, 735, 84]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux7"
      Ports		      [2, 1]
      Position		      [750, 281, 755, 334]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Step
      Name		      "Step load pu"
      Position		      [570, 30, 600, 60]
      ForegroundColor	      "red"
      Time		      "1.7"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Step
      Name		      "amplitude"
      Position		      [20, 120, 50, 150]
      ForegroundColor	      "red"
      Time		      "1.4"
      Before		      "1"
      After		      "5/6"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "currents"
      Ports		      [1]
      Position		      [765, 288, 795, 332]
      NamePlacement	      "alternate"
      Location		      [20, 60, 523, 382]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"Stator current"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "2"
      YMin		      "-6"
      YMax		      "10"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "25000"
      Decimation	      "20"
    }
    Block {
      BlockType		      Step
      Name		      "frequency"
      Position		      [15, 200, 45, 230]
      ForegroundColor	      "red"
      Time		      "1.4"
      Before		      "1"
      After		      "5/6"
      SampleTime	      "0"
      Port {
	PortNumber		1
	Name			"ws"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "ias"
      Position		      [655, 335, 695, 365]
      Expr		      "u(1)*cos(u(3))-u(2)*sin(u(3))"
      Port {
	PortNumber		1
	Name			"ias"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [62, 324, 134, 393]
      ForegroundColor	      "darkGreen"
      DropShadow	      on
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
") )\ndisp('Info')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"info"
	Location		[27, 179, 522, 343]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"91"
	Annotation {
	  Name			  " This demo deals with the open-loop operati"
"on of an induction motor that is excited by means \nof a sinusoidal PWM inver"
"ter and reproduces the  conditions encountered in the simulation\nentitled 'i"
"m3frames.mdl' which involves a pure 3-phase sinusoidal excitation. Except for"
" the\nappearance of the high frequency components, the transient characterist"
"ics are almost iden-\ntical . The filtering action of inertia produces the sa"
"me speed versus time curves. The main\ndifference in the two simulations is t"
"hat the presence a triangular carrier at 5KHz necessitates\nthe use of a very"
" small integration time step of a few microseconds."
	  Position		  [15, 55]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontName		  "Arial"
	  FontSize		  12
	}
	Annotation {
	  Name			  "Starting of an Induction Motor at no Load\n"
"under Sinusoidal PWM Excitation    "
	  Position		  [249, 27]
	  ForegroundColor	  "blue"
	  FontSize		  12
	  FontWeight		  "bold"
	}
      }
    }
    Block {
      BlockType		      Fcn
      Name		      "mag"
      Position		      [650, 239, 690, 271]
      Expr		      "sqrt(u(1)^2+u(2)^2)"
      Port {
	PortNumber		1
	Name			"Is_mag"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "pwm excitation"
      Ports		      [2, 1]
      Position		      [240, 109, 360, 211]
      ForegroundColor	      "green"
      ShowName		      off
      TreatAsAtomicUnit	      off
      MaskDisplay	      "disp('PWM\\nEXCTATION') "
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"pwm excitation"
	Location		[545, 492, 998, 679]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"80"
	Block {
	  BlockType		  Inport
	  Name			  "vs"
	  Position		  [25, 108, 55, 122]
	  NamePlacement		  "alternate"
	}
	Block {
	  BlockType		  Inport
	  Name			  "thetas"
	  Position		  [25, 128, 55, 142]
	  Port			  "2"
	  Port {
	    PortNumber		    1
	    Name		    "thetas"
	    PropagatedSignals	    "thetas"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Scope
	  Name			  "\n"
	  Ports			  [1]
	  Position		  [370, 30, 395, 70]
	  Location		  [497, 61, 998, 403]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.02"
	  YMin			  "-1.5"
	  YMax			  "1.5"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Scope
	  Name			  "A\n component"
	  Ports			  [1]
	  Position		  [270, 29, 300, 61]
	  NamePlacement		  "alternate"
	  Location		  [20, 60, 491, 407]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  TimeRange		  "0.02"
	  YMin			  "-1"
	  YMax			  "1"
	  DataFormat		  "StructureWithTime"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [125, 75, 185, 105]
	  ShowName		  off
	  Expr			  "u(1)*cos(u(2))"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [125, 110, 185, 140]
	  ShowName		  off
	  Expr			  "u(1)*cos(u(2)-2*pi/3)"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn2"
	  Position		  [125, 145, 185, 175]
	  ShowName		  off
	  Expr			  "u(1)*cos(u(2)+2*pi/3)"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux3"
	  Ports			  [2, 1]
	  Position		  [90, 105, 95, 145]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux4"
	  Ports			  [3, 1]
	  Position		  [225, 70, 230, 180]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Inputs		  "3"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "ab2dq"
	  Ports			  [2, 1]
	  Position		  [375, 131, 435, 184]
	  TreatAsAtomicUnit	  off
	  Port {
	    PortNumber		    1
	    Name		    "dq"
	    PropagatedSignals	    ", "
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	  System {
	    Name		    "ab2dq"
	    Location		    [761, 208, 995, 349]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "60"
	    Block {
	      BlockType		      Inport
	      Name		      "ab"
	      Position		      [20, 77, 50, 93]
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "thetak"
	      Position		      [20, 112, 50, 128]
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn"
	      Position		      [150, 18, 280, 62]
	      ShowName		      off
	      Expr		      "u(1)*cos(u(3))+u(2)*sin(u(3))"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      "Fcn1"
	      Position		      [150, 186, 285, 224]
	      ShowName		      off
	      Expr		      "-u(1)*sin(u(3))+u(2)*cos(u(3))"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      Ports		      [2, 1]
	      Position		      [125, 12, 130, 63]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux4"
	      Ports		      [2, 1]
	      Position		      [125, 177, 130, 228]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux5"
	      Ports		      [2, 1]
	      Position		      [320, 106, 325, 139]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "dq"
	      Position		      [350, 118, 380, 132]
	    }
	    Line {
	      SrcBlock		      "Mux3"
	      SrcPort		      1

⌨️ 快捷键说明

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