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

📄 controller_mod.mdl

📁 一个无刷电机仿真的模型
💻 MDL
📖 第 1 页 / 共 3 页
字号:
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 191, 480, 209]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q3"
	      Position		      [460, 101, 480, 119]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q6"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IV"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IVSTAR"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      Name		      "Q3"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "Q3"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Q6"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "Q6"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "SET3"
	  Ports			  [2, 2]
	  Position		  [160, 320, 285, 415]
	  TreatAsAtomicUnit	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "SET3"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "IW"
	      Position		      [20, 101, 40, 119]
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "IWSTAR"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      PortDimensions	      "1"
	    }
	    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 CONTROLLER_MOD 3"
	      Ports		      [2, 3]
	      Position		      [180, 100, 230, 180]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[2 3]"
	      Port {
		PortNumber		2
		Name			"Q5"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	      Port {
		PortNumber		3
		Name			"Q2"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 191, 480, 209]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q5"
	      Position		      [460, 101, 480, 119]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Q2"
	      Position		      [460, 136, 480, 154]
	      Port		      "2"
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IW"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "IWSTAR"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      Name		      "Q5"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "Q5"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Q2"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      3
	      DstBlock		      "Q2"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr1"
	  Position		  [360, 43, 390, 57]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr2"
	  Position		  [355, 383, 385, 397]
	  Port			  "2"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr3"
	  Position		  [360, 188, 390, 202]
	  Port			  "3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr4"
	  Position		  [360, 88, 390, 102]
	  Port			  "4"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr5"
	  Position		  [355, 338, 385, 352]
	  Port			  "5"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tr6"
	  Position		  [360, 233, 390, 247]
	  Port			  "6"
	}
	Line {
	  SrcBlock		  "IU_in"
	  SrcPort		  1
	  DstBlock		  "SET1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "IUSTAR_in"
	  SrcPort		  1
	  DstBlock		  "SET1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "IV_in"
	  SrcPort		  1
	  DstBlock		  "SET2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "IVSTAR_in"
	  SrcPort		  1
	  DstBlock		  "SET2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "IW"
	  SrcPort		  1
	  DstBlock		  "SET3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "IWSTAR_in"
	  SrcPort		  1
	  DstBlock		  "SET3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "SET1"
	  SrcPort		  1
	  DstBlock		  "Tr1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SET3"
	  SrcPort		  2
	  DstBlock		  "Tr2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SET2"
	  SrcPort		  1
	  DstBlock		  "Tr3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SET1"
	  SrcPort		  2
	  DstBlock		  "Tr4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SET3"
	  SrcPort		  1
	  DstBlock		  "Tr5"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "SET2"
	  SrcPort		  2
	  DstBlock		  "Tr6"
	  DstPort		  1
	}
      }
    }
  }
}

# Finite State Machines
# -- File save dated 25-May-2004 11:24:39
#
#    Stateflow Version 5.0 (R13) dated Jun 21 2002, 09:11:50
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"CONTROLLER_MOD"
		created              		"25-May-2004 11:13:31"
		isLibrary            		0
		firstTarget          		38
		sfVersion            		50013001.000001
	}

	chart {
		id                       		2
		name                     		"CONTROLLER_MOD/SET1"
		windowPosition           		[33.75 -18 768 517.5]
		viewLimits               		[11.938 736.438 0 481.5]
		screen                   		[1 1 1024 768 1.333333333333333]
		treeNode                 		[0 3 0 0]
		firstTransition          		6
		viewObj                  		2
		machine                  		1
		decomposition            		CLUSTER_CHART
		firstData                		9
		updateMethod             		CONTINUOUS
		chartFileNumber          		1
		executeAtInitialization  		1
	}

	state {
		id                  		3
		labelString         		"A/"
		position            		[163.25 77.625 421.875 166.875]
		fontSize            		12
		chart               		2
		treeNode            		[2 4 0 0]
		firstTransition     		8
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"A1/\n"
						"during:Q1=1;Q4=0;"
		position            		[180.625 117.75 175 93.75]
		fontSize            		12
		chart               		2
		treeNode            		[3 0 0 5]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"A2/\n"
						"during:Q4=1;Q1=0;"
		position            		[412.375 119.625 154.625 83.625]
		fontSize            		12
		chart               		2
		treeNode            		[3 0 4 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	transition {
		id             		6
		labelString    		"[1]"
		labelPosition  		[351.673 60.147 14.235 14.977]
		fontSize       		12
		src {
			intersection		[0 0 1 0 351.6731 47.625 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.4466 351.6731 77.625 0 0]
		}
		midPoint       		[351.6731 59.0165]
		chart          		2
		linkNode       		[2 0 0]
		dataLimits     		[349.273 354.073 47.625 77.625]
		subviewer      		2
		drawStyle      		SMART
	}

	transition {
		id             		7
		labelString    		"[IU>IUSTAR]"
		labelPosition  		[443 214.5 66.681 14.977]
		fontSize       		12
		src {
			id          		4
			intersection		[3 0 1 0.1607 327.5 211.5 0 78.1875]
		}
		dst {
			id          		5
			intersection		[3 0 1 0.7825 446 203.25 0 -75.4375]
		}
		midPoint       		[390.6117 241.0074]
		chart          		2
		linkNode       		[3 8 0]
		dataLimits     		[327.5 448.4 203.25 241.047]
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
	}

	transition {
		id             		8
		labelString    		"[IU<IUSTAR]"
		labelPosition  		[419.875 87.375 66.681 14.977]
		fontSize       		12
		src {
			id          		5
			intersection		[1 0 -1 0.1205 431 119.625 0 60.4375]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.8935 336.9875 117.75 0 -62.325]
		}
		midPoint       		[380.9301 90.9023]
		chart          		2
		linkNode       		[3 0 7]
		dataLimits     		[334.588 431 90.823 119.625]
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
	}

	data {
		id               		9
		name             		"IU"
		linkNode         		[2 0 10]
		scope            		INPUT_DATA
		machine          		1
		dataType         		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		10
		name             		"IUSTAR"
		linkNode         		[2 9 11]
		scope            		INPUT_DATA
		machine          		1
		dataType         		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		1
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {

⌨️ 快捷键说明

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