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

📄 spacevec1.mdl

📁 关于电机的.m程序
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      ComplexToRealImag
      Name		      "Complex to\nReal-Imag1"
      Ports		      [1, 2]
      Position		      [340, 298, 370, 327]
      ShowName		      off
      Output		      "Real and imag"
      Port {
	PortNumber		2
	Name			"q"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [405, 126, 410, 159]
      ForegroundColor	      "lightBlue"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"ab"
	PropagatedSignals	", b"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [3, 1]
      Position		      [405, 65, 410, 115]
      ForegroundColor	      "green"
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"ABC"
	PropagatedSignals	"A, B, C"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [405, 296, 410, 329]
      ForegroundColor	      "magenta"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"dq"
	PropagatedSignals	", q"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [405, 220, 410, 260]
      ForegroundColor	      "green"
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"BC"
	PropagatedSignals	"B, C"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [140, 195, 160, 215]
      ForegroundColor	      "green"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "--|"
      Port {
	PortNumber		1
	Name			"C"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [75, 135, 95, 155]
      ForegroundColor	      "green"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      Port {
	PortNumber		1
	Name			"B"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [75, 65, 95, 85]
      ForegroundColor	      "green"
      ShowName		      off
      IconShape		      "round"
      Inputs		      "++|"
      Port {
	PortNumber		1
	Name			"A"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Scope
      Name		      "ab\n components"
      Ports		      [1]
      Position		      [475, 129, 505, 161]
      ForegroundColor	      "lightBlue"
      Location		      [495, 429, 1003, 712]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "ab \ncomponents1"
      Ports		      [1]
      Position		      [550, 74, 580, 106]
      ForegroundColor	      "lightBlue"
      Location		      [565, 300, 1118, 574]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "ab2dq"
      Ports		      [1, 1]
      Position		      [560, 289, 620, 341]
      ForegroundColor	      "red"
      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		[652, 422, 990, 669]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"96"
	Block {
	  BlockType		  Inport
	  Name			  "ab"
	  Position		  [20, 92, 50, 108]
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn"
	  Position		  [165, 22, 220, 58]
	  Expr			  "u(1)*cos(u(3))+u(2)*sin(u(3))"
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn1"
	  Position		  [165, 186, 220, 224]
	  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		  [270, 106, 275, 139]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Clock
	  Name			  "t"
	  Position		  [80, 110, 100, 130]
	  Decimation		  "10"
	}
	Block {
	  BlockType		  Gain
	  Name			  "w"
	  Position		  [115, 102, 165, 138]
	  Gain			  "2*pi*50"
	}
	Block {
	  BlockType		  Outport
	  Name			  "dq"
	  Position		  [300, 118, 330, 132]
	}
	Line {
	  SrcBlock		  "t"
	  SrcPort		  1
	  DstBlock		  "w"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux3"
	  SrcPort		  1
	  DstBlock		  "Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux4"
	  SrcPort		  1
	  DstBlock		  "Fcn1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "w"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, -35; -80, 0; 0, -35]
	    DstBlock		    "Mux3"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 40; -80, 0; 0, 55]
	    DstBlock		    "Mux4"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "ab"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, -75]
	    DstBlock		    "Mux3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 90]
	    DstBlock		    "Mux4"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Fcn1"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Mux5"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Fcn"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Mux5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux5"
	  SrcPort		  1
	  DstBlock		  "dq"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "dq \ncomponents"
      Ports		      [1]
      Position		      [475, 299, 505, 331]
      ForegroundColor	      "magenta"
      Location		      [31, 134, 557, 398]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "0.02"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "dq \ncomponents1"
      Ports		      [1]
      Position		      [645, 299, 675, 331]
      ForegroundColor	      "magenta"
      Location		      [25, 416, 490, 695]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "0.02"
      YMin		      "-0.2"
      YMax		      "1.2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sin
      Name		      "fA"
      Position		      [25, 60, 55, 90]
      Frequency		      "2*pi*50"
      Phase		      "pi/2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "fB"
      Position		      [25, 130, 55, 160]
      Frequency		      "2*pi*50"
      Phase		      "-pi/6"
      SampleTime	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "info"
      Ports		      []
      Position		      [87, 334, 159, 403]
      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		[35, 428, 483, 692]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"90"
	Annotation {
	  Name			  "Space vector transformations"
	  Position		  [248, 17]
	  FontSize		  12
	  FontWeight		  "bold"
	}
	Annotation {
	  Name			  "This  demonstration  illustrates  the use o"
"f a complex space vector to represent a three- \nphase signal . It also shows"
" the transformation of the 3-phase signal 'ABC' into an equi-\nvalent 2-phase"
" system 'ab' . The only restriction to the 3-phase signal is that the zero-\n"
"sequence component is zero i.e. fA+fB+fC=0.\nThe complex space vector in the "
"stationary frame is defined as\n                  Fs = 2/3 (fA + fB*exp(j2*pi"
"/3) + fC*exp(-2j*pi/3)\nwhose cartesian components are\n                 fa ="
" Re (Fs)\n                 fb = Im (Fs)\nWhen expressed in a rotating frame a"
"t frequency wk, the space vector becomes\n                 Fk = Fs*exp(-jwk*t"
")\nwhose cartesian components are\n                 fd = Re(Fk)\n            "
"     fq = Im(Fk) \nThe inverse transformation from complex space vector back "
"to the 3-phase signal is\nalso demonstrated.\nFinally, the real transformatio"
"ns of  the ABC components to the components ab (in the\nstationary frame) and"
" then dq (in the rotating frame) are shown.        "
	  Position		  [15, 35]
	  HorizontalAlignment	  "left"
	  VerticalAlignment	  "top"
	  FontSize		  11
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "sp2ABC"
      Ports		      [1, 2]
      Position		      [325, 218, 380, 262]
      TreatAsAtomicUnit	      off
      System {
	Name			"sp2ABC"
	Location		[384, 296, 655, 454]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"87"
	Block {
	  BlockType		  Inport
	  Name			  "Fs"
	  Position		  [15, 12, 45, 28]
	}
	Block {
	  BlockType		  Constant
	  Name			  "-jalfa"
	  Position		  [30, 44, 70, 76]
	  Value			  "-j*2*pi/3"
	}
	Block {
	  BlockType		  ComplexToRealImag
	  Name			  "Complex to\nReal-Imag2"
	  Ports			  [1, 2]
	  Position		  [195, 38, 225, 67]
	  ShowName		  off
	  Output		  "Real and imag"
	  Port {
	    PortNumber		    1
	    Name		    "B"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  ComplexToRealImag
	  Name			  "Complex to\nReal-Imag3"
	  Ports			  [1, 2]
	  Position		  [195, 103, 225, 132]
	  ShowName		  off
	  Output		  "Real and imag"
	  Port {
	    PortNumber		    1
	    Name		    "C"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	    DataLogging		    off
	    DataLoggingNameMode	    "SignalName"
	    DataLoggingDecimateData off
	    DataLoggingDecimation   "2"
	    DataLoggingLimitDataPoints off
	    DataLoggingMaxPoints    "5000"
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [145, 37, 175, 68]
	  ShowName		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [145, 102, 175, 133]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator"
	  Position		  [250, 65, 270, 85]
	  ShowName		  off
	}
	Block {
	  BlockType		  Terminator
	  Name			  "Terminator1"
	  Position		  [250, 130, 270, 150]
	  ShowName		  off
	}
	Block {

⌨️ 快捷键说明

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