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

📄 svgensim4.mdl

📁 svpwm算法simulink模块嵌入式代码实现
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      ShowName		      off
      Inputs		      "3"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [3, 1]
      Position		      [515, 315, 525, 395]
      ShowName		      off
      Inputs		      "3"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [4]
      Position		      [580, 278, 620, 467]
      Location		      [247, 234, 819, 676]
      Open		      on
      NumInputPorts	      "4"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      TimeRange		      "0.04"
      YMin		      "-1~0~0~-20"
      YMax		      "1~1.1~7~380"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sin
      Name		      "VA "
      Ports		      [0, 1]
      Position		      [210, 350, 240, 380]
      SineType		      "Time based"
      Frequency		      "2*pi*100"
    }
    Block {
      BlockType		      Sin
      Name		      "Vb"
      Ports		      [0, 1]
      Position		      [210, 400, 240, 430]
      SineType		      "Time based"
      Frequency		      "2*pi*100"
      Phase		      "-2/3*pi"
    }
    Block {
      BlockType		      Sin
      Name		      "Vc"
      Ports		      [0, 1]
      Position		      [210, 445, 240, 475]
      SineType		      "Time based"
      Frequency		      "2*pi*100"
      Phase		      "2/3*pi"
    }
    Block {
      BlockType		      SubSystem
      Name		      "clarke"
      Ports		      [3, 2]
      Position		      [305, 409, 360, 451]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('clarke');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"clarke"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Va"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Vb"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Vc"
	  Position		  [20, 171, 40, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 180, 320, 220]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function svgensim4 1"
	  Ports			  [3, 3]
	  Position		  [180, 100, 230, 180]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[3 3]"
	  Port {
	    PortNumber		    2
	    Name		    "Vbeta"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    3
	    Name		    "Valfa"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 191, 480, 209]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Vbeta"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Valfa"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 85]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Va"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "Vbeta"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "Vbeta"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Vb"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Vc"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  3
	}
	Line {
	  Name			  "Valfa"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  3
	  DstBlock		  "Valfa"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "svgen1"
      Ports		      [2, 5]
      Position		      [400, 306, 460, 474]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      Array {
	Type			"Handle"
	Dimension		0
	PropName		"AvailSigsLoadSave"
      }
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('svgen');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"svgen1"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Ube"
	  Position		  [20, 101, 40, 119]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Ual"
	  Position		  [20, 136, 40, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 320, 320, 360]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function svgensim4 2"
	  Ports			  [2, 6]
	  Position		  [180, 115, 230, 320]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[2 6]"
	  Port {
	    PortNumber		    2
	    Name		    "twa"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    3
	    Name		    "twb"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    4
	    Name		    "twc"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    5
	    Name		    "sec"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    6
	    Name		    "the"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 331, 480, 349]
	}
	Block {
	  BlockType		  Outport
	  Name			  "twa"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "twb"
	  Position		  [460, 136, 480, 154]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "twc"
	  Position		  [460, 171, 480, 189]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "sec"
	  Position		  [460, 206, 480, 224]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "the"
	  Position		  [460, 246, 480, 264]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 210]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ube"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "twa"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "twa"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ual"
	  SrcPort		  1
	  Points		  [120, 0]
	  DstBlock		  " SFunction "
	  DstPort		  2
	}
	Line {
	  Name			  "twb"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  3
	  DstBlock		  "twb"
	  DstPort		  1
	}
	Line {
	  Name			  "twc"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  4
	  DstBlock		  "twc"
	  DstPort		  1
	}
	Line {
	  Name			  "sec"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  5
	  DstBlock		  "sec"
	  DstPort		  1
	}
	Line {
	  Name			  "the"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  6
	  DstBlock		  "the"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "VA "
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[40, 0]
	DstBlock		"clarke"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"Mux1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Vb"
      SrcPort		      1
      Points		      [0, 15; 15, 0]
      Branch {
	DstBlock		"clarke"
	DstPort			2
      }
      Branch {
	Points			[0, -80]
	DstBlock		"Mux1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Vc"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[20, 0]
	DstBlock		"clarke"
	DstPort			3
      }
      Branch {
	Points			[0, -85]
	DstBlock		"Mux1"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "svgen1"
      SrcPort		      1
      Points		      [0, 10]
      DstBlock		      "Mux2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "svgen1"
      SrcPort		      2
      DstBlock		      "Mux2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "svgen1"
      SrcPort		      3
      Points		      [0, -10]
      DstBlock		      "Mux2"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      Points		      [15, 0; 0, -5]
      DstBlock		      "Scope"
      DstPort		      2
    }
    Line {
      SrcBlock		      "svgen1"
      SrcPort		      4
      Points		      [100, 0]
      DstBlock		      "Scope"
      DstPort		      3
    }
    Line {
      SrcBlock		      "svgen1"
      SrcPort		      5
      Points		      [50, 0; 0, -20]
      DstBlock		      "Scope"
      DstPort		      4
    }
    Line {
      SrcBlock		      "clarke"
      SrcPort		      2
      Points		      [0, -5]
      DstBlock		      "svgen1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "clarke"
      SrcPort		      1
      Points		      [20, 0]
      DstBlock		      "svgen1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [30, 0; 0, -55; 195, 0]
      DstBlock		      "Scope"
      DstPort		      1
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.0 (R14) dated Apr 30 2004, 06:19:14
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"svgensim4"
		created              		"06-May-2008 08:46:23"

⌨️ 快捷键说明

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