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

📄 modalstatechart.mdl

📁 genetic algorithm direct search RANDOM GAOT V5
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Compare\nTo Constant"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Compare\nTo Constant"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [2]
      Position		      [880, 149, 905, 356]
      Floating		      off
      Location		      [875, 621, 1521, 1055]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "-5~-5"
      YMax		      "5~5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Line {
      Name		      "mode"
      Labels		      [0, 0]
      SrcBlock		      "Pulse\nGenerator"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	DstBlock		"Chart"
	DstPort			1
      }
      Branch {
	Points			[0, 195]
	DstBlock		"Scope"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      1
      Points		      [195, 0]
      DstBlock		      "Init"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Init"
      SrcPort		      1
      DstBlock		      "Merge"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      2
      Points		      [90, 0]
      DstBlock		      "Run"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Run"
      SrcPort		      1
      DstBlock		      "Merge"
      DstPort		      2
    }
    Line {
      Name		      "functionValue"
      Labels		      [0, 0]
      SrcBlock		      "Merge"
      SrcPort		      1
      Points		      [35, 0]
      Branch {
	Points			[0, 80; -455, 0; 0, -50]
	DstBlock		"Run"
	DstPort			1
      }
      Branch {
	Labels			[1, 0]
	DstBlock		"Scope"
	DstPort			1
      }
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"modalStateChart"
		created              		"19-Mar-2007 16:21:21"
		isLibrary            		0
		firstTarget          		21
		debug {
			runTimeCheck         		[0 0 0 0]
		}
		sfVersion            		66014000
	}

	chart {
		id                                        		2
		name                                      		"Chart"
		windowPosition                            		[148.5 386.25 653.25 381]
		viewLimits                                		[0 741.456 0 419.52]
		zoomFactor                                		1.216
		screen                                    		[1 1 1920 1200 1.333333333333333]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		9
		viewObj                                   		2
		visible                                   		1
		machine                                   		1
		subviewS {
			zoomFactor		1.216
		}
		decomposition                             		CLUSTER_CHART
		firstEvent                                		16
		firstData                                 		19
		chartFileNumber                           		1
		disableImplicitCasting                    		1
	}

	state {
		id                           		3
		labelString                  		"Scheduler/\n"
						"du: on every(10,tick) : Rate10ms;"
		position                     		[14.2809 39.9453 702.5192 356.9639]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 7 0 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		SET_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		4
		labelString                  		"Sched_10_MS/"
		position                     		[30.4983 108.9095 626.8754 234.5789]
		fontSize                     		12
		chart                        		2
		treeNode                     		[3 6 7 0]
		firstTransition              		10
		firstJunction                		8
		subviewer                    		2
		type                         		AND_STATE
		decomposition                		CLUSTER_STATE
		executionOrder               		1
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		5
		labelString                  		"Init/\n"
						"en:Period_10_ms_1_init;"
		position                     		[107.7318 216.3739 145.1563 87.6562]
		fontSize                     		12
		chart                        		2
		treeNode                     		[4 0 6 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		6
		labelString                  		"Periodic/\n"
						"\n"
						"en: Period_10_ms_1;"
		position                     		[396.3573 208.5771 213.2813 96.0938]
		fontSize                     		12
		chart                        		2
		treeNode                     		[4 0 0 5]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		7
		labelString                  		"/* The base rate of the system is 1ms. */"
		position                     		[279.5088 72.7004 254.8803 22.2778]
		fontSize                     		14
		chart                        		2
		treeNode                     		[3 0 0 4]
		superState                   		GROUPED
		isNoteBox                    		1
		noteBox                      		[0 0 0 1]
		subviewer                    		2
		type                         		GROUP_STATE
		decomposition                		SET_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	junction {
		id         		8
		position   		[203.803 161.9419 7]
		chart      		2
		linkNode   		[4 0 0]
		subviewer  		2
		quantum    		[0 0 13 0]
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		9
		labelPosition  		[256.16 17.272 8.204 16.384]
		fontSize       		12
		src {
			intersection		[0 0 1 0 270.5599 13.7406 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.3648 270.5599 39.9453 0 0]
		}
		midPoint       		[270.5599 23.1519]
		chart          		2
		linkNode       		[2 0 0]
		dataLimits     		[268.16 272.96 13.741 39.945]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		10
		labelPosition  		[189.403 132.268 8.204 16.384]
		fontSize       		12
		src {
			intersection		[0 0 1 0.4074 203.803 126.4439 0 0]
		}
		dst {
			id          		8
			intersection		[0 -0 -1 -1 203.803 154.9419 0 0]
		}
		midPoint       		[203.803 137.0517]
		chart          		2
		linkNode       		[4 0 14]
		dataLimits     		[201.403 206.203 126.444 154.942]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		11
		labelString    		"[mode==0]"
		labelPosition  		[272.3 267.211 59.251 16.384]
		fontSize       		12
		src {
			id          		6
			intersection		[4 -1 0 0.2581 396.3573 279.8721 0 -17.2776]
		}
		dst {
			id          		5
			intersection		[2 1 -0 0.7244 252.8881 279.8721 0 17.2776]
		}
		midPoint       		[325.7645 279.8691]
		chart          		2
		linkNode       		[4 12 15]
		dataLimits     		[252.888 396.357 277.472 282.272]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		2
	}

	transition {
		id             		12
		labelString    		"[mode==1]"
		labelPosition  		[321.416 219.583 59.251 16.384]
		fontSize       		12
		src {
			id          		5
			intersection		[2 1 -0 0.2345 252.8881 236.9293 0 -25.6589]
		}
		dst {
			id          		6
			intersection		[4 -1 0 0.705 396.3573 236.9293 0 25.6589]
		}
		midPoint       		[323.4809 236.9301]
		chart          		2
		linkNode       		[4 13 11]
		dataLimits     		[252.888 396.357 234.529 239.329]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		13
		labelPosition  		[203.802 192.944 8.204 16.384]
		fontSize       		12
		src {
			id          		8
			intersection		[0 0 1 -1 203.803 168.9419 0 0]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.6618 203.7962 216.3739 0 0]
		}
		midPoint       		[203.803 189.4283]
		chart          		2
		linkNode       		[4 14 12]
		dataLimits     		[201.396 206.196 168.942 216.374]
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		SRC_STICK
			arcClockDir   		COUNTER_CLOCKWISE
		}
		executionOrder 		2
	}

	transition {
		id             		14
		labelString    		"[mode==1]"
		labelPosition  		[316.457 145.536 59.251 16.384]
		fontSize       		12
		src {
			id          		8
			intersection		[0 0.9966 -0.0828 -1 210.7792 161.3623 0 0]
		}
		dst {
			id          		6
			intersection		[1 0 -1 0.3689 475.0368 208.5771 0 0]
		}
		midPoint       		[339.7912 159.7974]
		chart          		2
		linkNode       		[4 10 13]
		dataLimits     		[210.779 477.437 159.692 208.577]
		stampAngle     		0.3205
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		78.6756
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		15
		labelString    		"Rate10ms"
		labelPosition  		[459.781 311.807 55.605 16.384]
		fontSize       		12
		src {
			id          		6
			intersection		[3 0 1 0.7631 446.8836 304.6709 0 0]
		}
		dst {
			id          		6
			intersection		[3 0 1 0.2539 555.4865 304.6709 0 0]
		}
		midPoint       		[542.5899 325.1529]
		chart          		2
		linkNode       		[4 11 0]
		dataLimits     		[446.884 557.886 304.671 331.769]
		stampAngle     		NaN
		subviewer      		2
		slide {
			sticky        		SRC_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	event {
		id         		16
		name       		"Period_10_ms_1_init"
		linkNode   		[2 0 17]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

	event {
		id         		17
		name       		"Period_10_ms_1"
		linkNode   		[2 16 18]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

	event {
		id         		18
		name       		"Rate10ms"
		linkNode   		[2 17 0]
		scope      		LOCAL_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		19
		name                          		"mode"
		linkNode                      		[2 0 0]
		scope                         		INPUT_DATA
		machine                       		1
		props {
			array {
				size      		"-1"
			}
			type {
				method    		SF_INHERITED_TYPE
				primitive 		SF_DOUBLE_TYPE
				isSigned  		1
				wordLength		"16"
			}
			frame                		SF_FRAME_INHERITED
		}
		dataType                      		"inherited"
	}

	instance {
		id     		20
		name   		"Chart"
		machine		1
		chart  		2
	}

	target {
		id                        		21
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		machine                   		1
		linkNode                  		[1 0 0]
	}
}

⌨️ 快捷键说明

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