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

📄 sfcontrol1.mdl

📁 state flow program in Matlab simulink.
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	state {
		id                           		5
		labelString                  		"Lo\n"
						"en:speed=1;"
		position                     		[16.0987 232.555 95.3843 50.8812]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 3 7]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			fimathString    		"fimath(...\n"
								"'RoundMode', 'floor',...\n"
								"'OverflowMode', 'wrap',...\n"
								"'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
								"\n"
								"'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
								"'CastBeforeSum', false)"
			treatIntsAsFixpt		0
		}
	}

	state {
		id                           		6
		labelString                  		"r=hot"
		position                     		[207.375 25.875 184.75 75.75]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 0 4]
		firstTransition              		18
		firstJunction                		9
		superState                   		GROUPED
		subviewer                    		2
		type                         		FUNC_STATE
		decomposition                		CLUSTER_STATE
		firstData                    		20
		eml {
			fimathString    		"fimath(...\n"
								"'RoundMode', 'floor',...\n"
								"'OverflowMode', 'wrap',...\n"
								"'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
								"\n"
								"'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
								"'CastBeforeSum', false)"
			treatIntsAsFixpt		0
		}
	}

	state {
		id                           		7
		labelString                  		"r=warm"
		position                     		[270.7376 302.0394 184.75 75.75]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 0 5 0]
		firstTransition              		19
		firstJunction                		10
		superState                   		GROUPED
		subviewer                    		2
		type                         		FUNC_STATE
		decomposition                		CLUSTER_STATE
		firstData                    		21
		eml {
			fimathString    		"fimath(...\n"
								"'RoundMode', 'floor',...\n"
								"'OverflowMode', 'wrap',...\n"
								"'ProductMode', 'KeepLSB', 'ProductWordLength', 32,..."
								"\n"
								"'SumMode', 'KeepLSB', 'SumWordLength', 32,...\n"
								"'CastBeforeSum', false)"
			treatIntsAsFixpt		0
		}
	}

	junction {
		id         		8
		position   		[88.4531 183.3546 7]
		chart      		2
		linkNode   		[2 0 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		9
		position   		[333.5747 75.8247 7]
		chart      		2
		linkNode   		[6 0 0]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		10
		position   		[387.3876 351.5615 7]
		chart      		2
		linkNode   		[7 0 0]
		isGrouped  		1
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		11
		labelPosition  		[326.704 168.516 8.548 16.217]
		fontSize       		12
		src {
			intersection		[0 0 1 0 322.3045 160.125 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.7255 322.3045 190.125 0 0]
		}
		midPoint       		[322.3045 171.5165]
		chart          		2
		linkNode       		[2 13 15]
		dataLimits     		[319.904 324.704 160.125 190.125]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		12
		labelString    		"off_switch"
		labelPosition  		[233.327 114.316 58.126 16.217]
		fontSize       		12
		src {
			id          		4
			intersection		[2 1 0 0.7212 112.858 106.875 0 -14.1861]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.2744 278.4336 190.125 0 26.6895]
		}
		midPoint       		[223.1583 122.825]
		chart          		2
		linkNode       		[2 0 16]
		dataLimits     		[112.858 280.834 106.875 190.125]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		13
		labelString    		"[hot()]"
		labelPosition  		[92.924 140.709 34.192 16.217]
		fontSize       		12
		src {
			id          		8
			intersection		[0 0.556 -0.8312 -1 92.3449 177.5362 0 0]
		}
		dst {
			id          		4
			intersection		[3 0 1 0.222 91.6818 121.0611 0 0]
		}
		midPoint       		[95.739 153.4694]
		chart          		2
		linkNode       		[2 16 11]
		dataLimits     		[89.282 96.823 121.061 177.536]
		stampAngle     		-0.5895
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		SRC_STICK
			arcL          		-3.2287
			arcClockDir   		COUNTER_CLOCKWISE
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		14
		labelString    		"[warm()]"
		labelPosition  		[98.256 208.832 48.723 16.217]
		fontSize       		12
		src {
			id          		8
			intersection		[0 0.2873 0.9578 -1 90.4645 190.0594 0 0]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.7428 86.9531 232.555 0 0]
		}
		midPoint       		[90.0566 207.7541]
		chart          		2
		linkNode       		[2 15 17]
		dataLimits     		[84.553 91.67 190.059 232.555]
		stampAngle     		0.2915
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		-1.5
			midPointSticky		1
		}
		executionOrder 		2
	}

	transition {
		id             		15
		labelString    		"on_switch"
		labelPosition  		[174.52 175.772 58.126 16.217]
		fontSize       		12
		src {
			id          		3
			intersection		[4 -1 0 0.616 251.7442 211.125 0 0]
		}
		dst {
			id          		8
			intersection		[0 0.9799 -0.1993 -1 95.3127 181.9599 0 0]
		}
		midPoint       		[173.9169 190.6153]
		chart          		2
		linkNode       		[2 11 14]
		dataLimits     		[95.313 251.744 178.014 211.125]
		stampAngle     		0.242
		subviewer      		2
		drawStyle      		SMART
		slide {
			sticky        		BOTH_STICK
			arcL          		-21
		}
		executionOrder 		1
	}

	transition {
		id             		16
		labelString    		"[!hot()]"
		labelPosition  		[32.75 170.25 38.466 16.217]
		fontSize       		12
		src {
			id          		4
			intersection		[3 0 1 0.832 33.5 121.0611 0 36.1659]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.1824 33.5 232.555 0 -31.6659]
		}
		midPoint       		[33.5 174.9711]
		chart          		2
		linkNode       		[2 12 13]
		dataLimits     		[31.1 35.9 121.061 232.555]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
		}
		executionOrder 		2
	}

	transition {
		id             		17
		labelString    		"off_switch"
		labelPosition  		[211.426 282.406 58.126 16.217]
		fontSize       		12
		src {
			id          		5
			intersection		[2 1 0 0.3748 111.483 251.625 0 6.8085]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.6439 286.375 244.8165 0 -34.6308]
		}
		midPoint       		[225.5157 275.0457]
		chart          		2
		linkNode       		[2 14 0]
		dataLimits     		[111.483 288.775 244.817 278.378]
		stampAngle     		NaN
		subviewer      		2
		drawStyle      		SMART
		slide {
			mode          		MIRROR_SLIDE
			sticky        		BOTH_STICK
		}
		executionOrder 		1
	}

	transition {
		id             		18
		labelString    		"{r=temp>=120;}"
		labelPosition  		[249.2 54.981 89.753 16.217]
		fontSize       		12
		src {
			intersection		[0 1 0 0 242.25 75.8247 0 0]
		}
		dst {
			id          		9
			intersection		[7 -1 0 -1 326.5747 75.8247 0 0]
		}
		midPoint       		[281.9848 75.8247]
		chart          		2
		linkNode       		[6 0 0]
		isGrouped      		1
		dataLimits     		[242.25 326.575 73.425 78.225]
		subviewer      		2
		drawStyle      		SMART
		slide {
		}
		executionOrder 		1
	}

	transition {
		id             		19
		labelString    		"{r=temp>=100;}"
		labelPosition  		[303.263 331.468 89.753 16.217]
		fontSize       		12
		src {
			intersection		[0 1 0 0 296.0629 351.5615 0 0]
		}
		dst {
			id          		10
			intersection		[7 -1 0 -1 380.3876 351.5615 0 0]
		}
		midPoint       		[335.7977 351.5615]
		chart          		2
		linkNode       		[7 0 0]
		isGrouped      		1
		dataLimits     		[296.063 380.388 349.162 353.962]
		subviewer      		2
		slide {
		}
		executionOrder 		1
	}

	data {
		id                            		20
		name                          		"r"
		linkNode                      		[6 0 0]
		scope                         		FUNCTION_OUTPUT_DATA
		machine                       		1
		props {
			type {
				primitive 		SF_DOUBLE_TYPE
				isSigned  		1
				wordLength		"16"
			}
		}
		dataType                      		"double"
	}

	data {
		id                            		21
		name                          		"r"
		linkNode                      		[7 0 0]
		scope                         		FUNCTION_OUTPUT_DATA
		machine                       		1
		props {
			type {
				primitive 		SF_DOUBLE_TYPE
				isSigned  		1
				wordLength		"16"
			}
		}
		dataType                      		"double"
	}

	event {
		id         		22
		name       		"off_switch"
		linkNode   		[2 0 23]
		scope      		INPUT_EVENT
		trigger    		FALLING_EDGE_EVENT
		machine    		1
		debug      		[1 1]
	}

	event {
		id         		23
		name       		"on_switch"
		linkNode   		[2 22 24]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		24
		name       		"temp_event"
		linkNode   		[2 23 0]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	data {
		id                            		25
		name                          		"speed"
		linkNode                      		[2 0 26]
		scope                         		OUTPUT_DATA
		machine                       		1
		props {
			type {
				primitive 		SF_DOUBLE_TYPE
				isSigned  		1
				wordLength		"16"
			}
		}
		dataType                      		"double"
	}

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

	instance {
		id     		27
		name   		"Controller"
		machine		1
		chart  		2
	}

	target {
		id                        		28
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		codeFlags                 		" debug=1 overflow=0 echo=0"
		machine                   		1
		linkNode                  		[1 0 29]
	}

	target {
		id                        		29
		codeFlags                 		" comments=1 autocomments=0 emitdescriptions=1 statebitsets=1"
						" databitsets=1 emitlogicalops=1 elseifdetection=1 constantfo"
						"lding=1 redundantloadelimination=0 preservenames=0 preserven"
						"ameswithparent=0 exportcharts=0 ioformat=0 initializer=0 mul"
						"tiinstanced=0"
		machine                   		1
		linkNode                  		[1 28 0]
	}
}

⌨️ 快捷键说明

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