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

📄 security.mdl

📁 这是关于matlab stateflow的源码例子
💻 MDL
📖 第 1 页 / 共 3 页
字号:
		position       		[3.586868234463665 313.4808563082062 313.8097246518991 187.5492157903914]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[2 10 6 0]
		firstTransition		23
		type           		AND_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		10
		labelString    		"On"
		position       		[54.28716914224876 328.6805732710554 245.4180501030273 166.1458570732009]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[9 11 0 13]
		firstTransition		24
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		11
		labelString    		"Local_Warning"
		position       		[195.8343310358317 340.4530757170339 93.89010409734638 47.82388879370235]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[10 0 0 12]
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		12
		labelString    		"Idle\n"
						"reset_timer=0;\n"
						"call_police=0;"
		position       		[62.3063859421199 401.0643411809511 83.41667346694125 58.51569921251926]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[10 0 11 14]
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		13
		labelString    		"Off"
		position       		[15.97469414709314 412.9522019058857 31.2559744773589 26.62817731561568]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[9 0 10 0]
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	state {
		id             		14
		labelString    		"Global_Alert\n"
						"call_police=1;"
		position       		[196.3122549068603 434.9646794207401 81.97620195572353 50.31580644716753]
		fontSize       		12
		arrowSize      		9
		chart          		2
		treeNode       		[10 0 12 0]
		type           		OR_STATE
		decomposition  		CLUSTER_STATE
	}

	transition {
		id           		15
		labelPosition		[92.16174488135499 33.00419786303845 8.21337863606758 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			intersection		[0 0 0 0.4324083511448186 86.95939342100802 27.5687817749399]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.4838709677419361 113.8285240361399 53.7045416682233]
		}
		midPoint     		[93.19825502998626 34.14033710650395]
		chart        		2
		linkNode     		[3 0 16]
		dataLimits   		[86.95939342100792 116.5285240361399 27.56878177493987 53.7045416682233]
	}

	transition {
		id           		16
		labelString  		"Door_mode"
		labelPosition		[190.0892558961932 33.6034765432797 64.88569122493387 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		4
			intersection		[1 0 -1 0.7298387096774203 159.3980283160324 53.7045416682233]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.8346774193548403 298.7488544698811 59.55507103115637]
		}
		midPoint     		[269.5091244220885 34.11457449940415]
		chart        		2
		linkNode     		[3 15 18]
		dataLimits   		[159.3980283160324 301.4488544698811 32.60423677827768 59.55507103115637]
	}

	transition {
		id           		17
		labelString  		"Door_sens{Warn;}"
		labelPosition		[50.48838820210554 69.02731866358917 101.845895087238 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		4
			intersection		[2 -1 0 0.6763348785023086 209.449778918537 93.6845996788106]
		}
		dst {
			id          		4
			intersection		[3 0 -1 0.5895264452182836 100.2304656171581 112.8173558692594]
		}
		midPoint     		[162.5967875986787 87.481849932812]
		chart        		2
		linkNode     		[4 0 0]
		dataLimits   		[97.5304656171581 209.4497789185368 85.63247713369655 112.8173558692594]
	}

	transition {
		id           		18
		labelString  		"Door_mode"
		labelPosition		[103.1898467927552 124.1173581593239 64.88569122493387 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		5
			intersection		[3 0 1 0.2499999999999985 292.6404013150384 106.4477815505389]
		}
		dst {
			id          		4
			intersection		[3 0 1 0.7580645161290323 69.00606081001611 112.8173558692594]
		}
		midPoint     		[126.8109205874541 143.5229527481157]
		chart        		2
		linkNode     		[3 16 0]
		dataLimits   		[66.30606081001611 292.6404013150381 106.447781550539 143.5525411897852]
	}

	transition {
		id           		19
		labelPosition		[96.34232255942388 177.0544020692435 8.21337863606758 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			intersection		[0 0 0 0.4324083511448186 91.37668290237647 171.6669131900239]
		}
		dst {
			id          		7
			intersection		[1 0 -1 0.4838709677419361 117.1786477797734 197.8026730833073]
		}
		midPoint     		[97.35776999236845 178.2282037399471]
		chart        		2
		linkNode     		[6 0 20]
		dataLimits   		[91.37668290237653 119.8786477797734 171.6669131900239 197.8026730833073]
	}

	transition {
		id           		20
		labelString  		"Win_mode"
		labelPosition		[191.4388944761713 178.954461847481 59.95766404329332 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		7
			intersection		[1 0 -1 0.7298387096774203 162.205676142984 197.8026730833073]
		}
		dst {
			id          		8
			intersection		[1 0 -1 0.8346774193548403 295.9575082715463 203.6532024462404]
		}
		midPoint     		[267.9333774918381 179.1838468298689]
		chart        		2
		linkNode     		[6 19 22]
		dataLimits   		[162.2056761429841 298.6575082715463 177.955222082479 203.6532024462404]
	}

	transition {
		id           		21
		labelString  		"Win_sens{Warn;}"
		labelPosition		[60.35867105224205 214.4253863210608 96.91786790559743 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		7
			intersection		[2 -1 0 0.6698806286059069 211.6615925419199 237.4012022189616]
		}
		dst {
			id          		7
			intersection		[3 0 -1 0.6769544926914587 87.73782553422765 256.9154872843434]
		}
		midPoint     		[158.6309596107073 229.6763129995079]
		chart        		2
		linkNode     		[7 0 0]
		dataLimits   		[85.03782553422765 211.66159254192 227.3195697757636 256.9154872843434]
	}

	transition {
		id           		22
		labelString  		"Win_mode"
		labelPosition		[120.3701552789032 269.3596492884836 59.95766404329332 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		8
			intersection		[3 0 1 0.2499999999999985 289.8490551167037 250.5459129656228]
		}
		dst {
			id          		7
			intersection		[3 0 1 0.7580645161290323 72.8897674225171 256.9154872843434]
		}
		midPoint     		[146.7462618151761 289.715455084744]
		chart        		2
		linkNode     		[6 20 0]
		dataLimits   		[70.18976742251709 289.8490551167041 250.5459129656224 290.0016910115629]
	}

	transition {
		id           		23
		labelPosition		[37.79954541835461 332.6671495193901 8.21337863606758 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			intersection		[0 0 0 0.1348568326764662 34.33042518126175 342.8763650253362]
		}
		dst {
			id          		10
			intersection		[4 -1 0 0.7917124147484713 54.28716914224876 363.2866926403781]
		}
		midPoint     		[38.59896972919512 351.5860240191142]
		chart        		2
		linkNode     		[9 0 27]
		dataLimits   		[34.33042518126172 54.28716914224876 342.8763650253363 365.9866926403781]
	}

	transition {
		id           		24
		labelString  		"Warn\n"
						"{reset_timer=1;}"
		labelPosition		[105.1758204503335 331.1410569092832 87.8831514059231 29.56816308984328]
		fontSize     		12
		arrowSize    		9
		src {
			id          		12
			intersection		[1 0 -1 0.3915094339622638 94.96480055417706 401.0643411809511]
		}
		dst {
			id          		11
			intersection		[4 -1 0 0.5174429182189619 195.8343310358317 363.5308319327438]
		}
		midPoint     		[114.1701101564167 373.6388896779604]
		chart        		2
		linkNode     		[10 0 25]
		dataLimits   		[94.96480055417703 195.8343310358317 360.8308319327438 401.0643411809509]
	}

	transition {
		id           		25
		labelPosition		[72.48759136751144 376.4857862065608 8.21337863606758 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			intersection		[0 0 0 0 69.21727232977533 369.4568199956322]
		}
		dst {
			id          		12
			intersection		[1 0 -1 0.2075471698113204 79.61928043525862 401.0643411809511]
		}
		midPoint     		[73.65610080710492 378.3239077752438]
		chart        		2
		linkNode     		[10 24 26]
		dataLimits   		[69.21727232977534 82.31928043525862 369.4568199956322 401.0643411809511]
	}

	transition {
		id           		26
		labelString  		"Alert"
		labelPosition		[217.1433551014332 404.9060200253203 25.46147377180949 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		11
			intersection		[3 0 1 0.1610799087513168 274.6006257325259 388.2769645107362]
		}
		dst {
			id          		14
			intersection		[1 0 -1 0.567603430298008 242.8422283397313 434.9646794207401]
		}
		midPoint     		[265.7468011285677 402.6821295996599]
		chart        		2
		linkNode     		[10 25 29]
		dataLimits   		[240.1422283397313 274.6006257325259 388.2769645107363 434.9646794207401]
	}

	transition {
		id           		27
		labelString  		"On_Off"
		labelPosition		[12.04856016068247 386.2708241559908 41.06689318033789 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		13
			intersection		[1 0 -1 0.7467233618969634 39.31426048819226 412.9522019058857]
		}
		dst {
			id          		10
			intersection		[4 -1 0 0.5538894010414557 54.28716914224876 402.8000010844618]
		}
		midPoint     		[40.06590772723663 407.4456171127191]
		chart        		2
		linkNode     		[9 23 28]
		dataLimits   		[39.31339400633137 54.28716914224876 400.1000010844618 412.9522019058857]
	}

	transition {
		id           		28
		labelString  		"On_Off"
		labelPosition		[10.85770978826963 452.2101456977997 41.06689318033789 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		10
			intersection		[4 -1 0 0.249630355395224 54.28716914224876 453.3513809956291]
		}
		dst {
			id          		13
			intersection		[3 0 1 0.1273584905660385 43.24995489384499 439.5803792215014]
		}
		midPoint     		[48.59923673495718 452.8999389513176]
		chart        		2
		linkNode     		[9 27 0]
		dataLimits   		[40.54995489384499 54.28716914224876 439.5803792215014 453.3594660748677]
	}

	transition {
		id           		29
		labelString  		"Reset"
		labelPosition		[126.4908288543824 471.9951253167792 33.67485240787708 15.6054194085284]
		fontSize     		12
		arrowSize    		9
		src {
			id          		10
			intersection		[3 0 -1 0.7290618339020539 120.7802855644968 494.8264303442563]
		}
		dst {
			id          		12
			intersection		[3 0 1 0.3032294596826936 120.4286665851529 459.5800403934704]
		}
		midPoint     		[120.6822588053997 485.0757773077947]
		chart        		2
		linkNode     		[10 26 0]
		dataLimits   		[117.7286665851529 123.1286665851529 459.5800403934704 494.8264303442563]
	}

	event {
		id         		30
		name       		"Door_sens"
		linkNode   		[2 0 31]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		31
		name       		"Door_mode"
		linkNode   		[2 30 32]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		32
		name       		"Win_sens"
		linkNode   		[2 31 33]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		33
		name       		"Win_mode"
		linkNode   		[2 32 34]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		34
		name       		"On_Off"
		linkNode   		[2 33 35]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		35
		name       		"Reset"
		linkNode   		[2 34 36]
		scope      		INPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	event {
		id         		36
		name       		"Alert"
		linkNode   		[2 35 37]
		scope      		INPUT_EVENT
		trigger    		RISING_EDGE_EVENT
		machine    		1
	}

	event {
		id         		37
		name       		"Warn"
		linkNode   		[2 36 0]
		scope      		LOCAL_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id         		38
		name       		"reset_timer"
		linkNode   		[2 0 39]
		scope      		OUTPUT_DATA
		machine    		1
		dataType   		"boolean"
	}

	data {
		id         		39
		name       		"call_police"
		linkNode   		[2 38 0]
		scope      		OUTPUT_DATA
		machine    		1
		dataType   		"boolean"
	}

	instance {
		id     		40
		name   		"Security System"
		machine		1
		chart  		2
	}

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

⌨️ 快捷键说明

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