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

📄 powerwindow.mdl

📁 power window related simulink simulation
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      TruthTable	      "[1 0 0;0 0 1;0 1 0;1 0 0]"
    }
    Block {
      BlockType		      Reference
      Name		      "driver down"
      Ports		      [2, 1]
      Position		      [60, 232, 90, 268]
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "driver up"
      Ports		      [2, 1]
      Position		      [60, 177, 90, 213]
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "endstop"
      Ports		      [2, 1]
      Position		      [210, 212, 240, 248]
      NamePlacement	      "alternate"
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "obstacle"
      Ports		      [2, 1]
      Position		      [210, 277, 240, 313]
      NamePlacement	      "alternate"
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Mux
      Name		      "outputMux"
      Ports		      [2, 1]
      Position		      [430, 62, 435, 333]
      ForegroundColor	      "magenta"
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      CombinatorialLogic
      Name		      "passenger\nneutral, up, down map"
      Position		      [180, 85, 210, 115]
      ForegroundColor	      "magenta"
      NamePlacement	      "alternate"
      TruthTable	      "[1 0 0;0 0 1;0 1 0;1 0 0]"
    }
    Block {
      BlockType		      Reference
      Name		      "passenger down"
      Ports		      [2, 1]
      Position		      [60, 107, 90, 143]
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "passenger up"
      Ports		      [2, 1]
      Position		      [60, 52, 90, 88]
      SourceBlock	      "simulink3/Nonlinear/Manual Switch"
      SourceType	      "Manual Switch"
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "window\ncommand"
      Ports		      [1]
      Position		      [455, 184, 485, 216]
      ForegroundColor	      "gray"
      Floating		      off
      Location		      [656, 500, 980, 706]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "0"
      YMax		      "1"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Constant9"
      SrcPort		      1
      DstBlock		      "passenger up"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant10"
      SrcPort		      1
      DstBlock		      "passenger up"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Constant2"
      SrcPort		      1
      DstBlock		      "passenger down"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      DstBlock		      "passenger down"
      DstPort		      2
    }
    Line {
      SrcBlock		      "10 ms"
      SrcPort		      1
      DstBlock		      "control"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "passenger down"
      SrcPort		      1
      DstBlock		      "Mux4"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Constant12"
      SrcPort		      1
      DstBlock		      "driver up"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant5"
      SrcPort		      1
      DstBlock		      "driver up"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Constant7"
      SrcPort		      1
      DstBlock		      "driver down"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant3"
      SrcPort		      1
      DstBlock		      "driver down"
      DstPort		      2
    }
    Line {
      SrcBlock		      "driver down"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux4"
      SrcPort		      1
      DstBlock		      "passenger\nneutral, up, down map"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      Points		      [5, 0; 0, -60]
      DstBlock		      "driver\nneutral, up, down map"
      DstPort		      1
    }
    Line {
      SrcBlock		      "passenger\nneutral, up, down map"
      SrcPort		      1
      DstBlock		      "control"
      DstPort		      1
    }
    Line {
      SrcBlock		      "driver\nneutral, up, down map"
      SrcPort		      1
      DstBlock		      "control"
      DstPort		      2
    }
    Line {
      SrcBlock		      "passenger up"
      SrcPort		      1
      DstBlock		      "Mux4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "driver up"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "control"
      SrcPort		      1
      DstBlock		      "outputMux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "control"
      SrcPort		      2
      DstBlock		      "outputMux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "outputMux"
      SrcPort		      1
      DstBlock		      "window\ncommand"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant13"
      SrcPort		      1
      DstBlock		      "endstop"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant14"
      SrcPort		      1
      DstBlock		      "endstop"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Constant15"
      SrcPort		      1
      DstBlock		      "obstacle"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant16"
      SrcPort		      1
      DstBlock		      "obstacle"
      DstPort		      2
    }
    Line {
      SrcBlock		      "endstop"
      SrcPort		      1
      DstBlock		      "control"
      DstPort		      3
    }
    Line {
      SrcBlock		      "obstacle"
      SrcPort		      1
      DstBlock		      "control"
      DstPort		      4
    }
  }
}

# Finite State Machines
# -- File save dated 13-Dec-2001 14:49:50
#
#    Stateflow Version 4.1 (R12.1) dated May 21 2001, 01:15:03
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"powerwindow"
		created              		"26-Nov-2001 16:45:42"
		isLibrary            		0
		firstTarget          		68
		sfVersion            		41012101
	}

	chart {
		id                       		2
		name                     		"control"
		windowPosition           		[29.25 39.75 712.5 391.5]
		viewLimits               		[0 857.982 0 455.923]
		zoomFactor               		1.282
		screen                   		[1 1 1024 768 1.333333333333333]
		treeNode                 		[0 22 0 0]
		firstTransition          		28
		viewObj                  		2
		machine                  		1
		decomposition            		CLUSTER_CHART
		firstEvent               		60
		firstData                		61
		chartFileNumber          		1
		executeAtInitialization  		1
	}

	state {
		id             		3
		labelString    		"passengerneutral\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 0;"
		position       		[324.138 38.448 108.533 69.029]
		fontSize       		12
		chart          		2
		treeNode       		[15 0 0 6]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		4
		labelString    		"emergencyDown\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 1;"
		position       		[724.059 27.423 98.524 90.095]
		fontSize       		12
		chart          		2
		treeNode       		[2 0 22 0]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		5
		labelString    		"passengerUp\n"
						"entry: moveUp = 1;\n"
						"exit: moveUp = 0;"
		position       		[453.984 138.842 235.875 128.438]
		fontSize       		12
		chart          		2
		treeNode       		[15 7 6 0]
		firstTransition		43
		firstJunction  		24
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		6
		labelString    		"passengerDown\n"
						"entry: moveDown = 1;\n"
						"exit: moveDown = 0;"
		position       		[53.424 130.294 248.375 132.375]
		fontSize       		12
		chart          		2
		treeNode       		[15 8 3 5]
		firstTransition		36
		firstJunction  		23
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		7
		labelString    		"iniPassengerUp"
		position       		[573.624 147.205 96.875 25]
		fontSize       		12
		chart          		2
		treeNode       		[5 0 0 9]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		8
		labelString    		"iniPassengerDown"
		position       		[184.915 144.838 107.031 25]
		fontSize       		12
		chart          		2
		treeNode       		[6 0 0 11]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		9
		labelString    		"PassengerUp"
		position       		[469.625 223.706 89.219 25]
		fontSize       		12
		chart          		2
		treeNode       		[5 0 7 10]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		10
		labelString    		"autoPassengerUp"
		position       		[570.312 236.174 103.125 25]
		fontSize       		12
		chart          		2
		treeNode       		[5 0 9 0]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		11
		labelString    		"passengerDown"
		position       		[183.925 231.919 99.844 25]
		fontSize       		12
		chart          		2
		treeNode       		[6 0 8 12]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		12
		labelString    		"autoPassengerDown"
		position       		[58.675 233.42 119.531 25]
		fontSize       		12
		chart          		2
		treeNode       		[6 0 11 0]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		13
		labelString    		"driverUp\n"
						"entry: moveUp = 1;\n"
						"exit: moveUp = 0;"
		position       		[444.39 310.898 255 117.188]
		fontSize       		12
		chart          		2
		treeNode       		[22 19 14 0]
		firstTransition		48
		firstJunction  		26
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		14
		labelString    		"driverDown\n"
						"entry: moveDown = 1;\n"
						"exit: moveDown = 0;"
		position       		[46.386 306.332 232.187 120.937]
		fontSize       		12
		chart          		2
		treeNode       		[22 16 15 13]
		firstTransition		45
		firstJunction  		25
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		15
		labelString    		"driverNeutral\n"
						"entry:\n"
						"moveUp = 0;\n"
						"moveDown = 0;"
		position       		[44.034 35.589 657.914 242.733]
		fontSize       		12
		chart          		2
		treeNode       		[22 3 0 14]
		firstTransition		40
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		16
		labelString    		"iniDriverDown"
		position       		[177.241 320.448 92.5 25]
		fontSize       		12
		chart          		2
		treeNode       		[14 0 0 18]
		subviewer      		2
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		17

⌨️ 快捷键说明

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