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

📄 cmlib.mdl

📁 一个matlab的将军模型
💻 MDL
📖 第 1 页 / 共 3 页
字号:
		firstTransition          		9
		viewObj                  		2
		machine                  		1
		toolbarMode              		LIBRARY_TOOLBAR
		subviewS {
		}
		decomposition            		CLUSTER_CHART
		firstEvent               		10
		firstData                		11
		chartFileNumber          		2
	}

	state {
		id                  		3
		labelString         		"calc/\n"
						"entry:\n"
						"out;\n"
						"sample_time=period[1]+rand1*(period[2]-period[1]);\n"
						"jitter_last=jitter_actual;\n"
						"jitter_actual=jitter[1]+rand2*(jitter[2]-jitter[1]);\n"
						"fire=sample_time-jitter_last+jitter_actual;\n"
						"time=t;"
		position            		[74.227 336.39 324.141 141.619]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 5 0]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"initial/\n"
						"entry:\n"
						"phase_actual=(phase[1]+rand1*(phase[2]-phase[1]));\n"
						"jitter_actual=jitter[1]+rand2*(jitter[2]-jitter[1]);\n"
						"fire=phase_actual+jitter_actual;\n"
						"time=t;"
		position            		[72.75 46.5 365.228 138.435]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 0 5]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"wait"
		position            		[649.395 88.568 128.051 85.367]
		fontSize            		12
		chart               		2
		treeNode            		[2 0 4 3]
		subviewer           		2
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	transition {
		id             		6
		labelString    		"[t-time>=fire]/out;"
		labelPosition  		[464.702 375.143 88.454 17.042]
		fontSize       		12
		src {
			id          		3
			intersection		[2 1 0 0.2954 398.3682 378.2239 0 0]
		}
		dst {
			id          		3
			intersection		[2 1 0 0.6092 398.3682 422.664 0 0]
		}
		midPoint       		[490.6439 400.8796]
		chart          		2
		linkNode       		[2 7 0]
		dataLimits     		[398.368 490.646 378.224 425.064]
		subviewer      		2
	}

	transition {
		id             		7
		labelString    		"[t-time>=fire]/out;"
		labelPosition  		[111.606 243.357 88.454 17.042]
		fontSize       		12
		src {
			id          		4
			intersection		[3 0 1 0.8953 110.9808 184.935 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.1134 110.9808 336.3896 0 0]
		}
		midPoint       		[110.9808 259.6941]
		chart          		2
		linkNode       		[2 8 6]
		dataLimits     		[108.581 113.381 184.935 336.39]
		subviewer      		2
	}

	transition {
		id             		8
		labelString    		"[start]"
		labelPosition  		[473.957 86.968 31.971 17.042]
		fontSize       		12
		src {
			id          		5
			intersection		[4 -1 0 0.8 649.395 105.6414 0 0]
		}
		dst {
			id          		4
			intersection		[2 1 0 0.4272 437.978 105.6414 0 0]
		}
		midPoint       		[543.3512 105.6414]
		chart          		2
		linkNode       		[2 9 7]
		dataLimits     		[437.978 649.395 103.241 108.041]
		subviewer      		2
	}

	transition {
		id             		9
		labelPosition  		[703.817 69.115 8.526 17.042]
		fontSize       		12
		src {
			intersection		[0 0 1 0 703.8168 58.5683 0 0]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.425 703.8168 88.5683 0 0]
		}
		midPoint       		[703.8168 68.1584]
		chart          		2
		linkNode       		[2 0 8]
		dataLimits     		[701.417 706.217 58.568 88.568]
		subviewer      		2
	}

	event {
		id         		10
		name       		"out"
		linkNode   		[2 0 0]
		scope      		OUTPUT_EVENT
		trigger    		EITHER_EDGE_EVENT
		machine    		1
	}

	data {
		id               		11
		name             		"phase_actual"
		linkNode         		[2 0 12]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		12
		name             		"jitter_actual"
		linkNode         		[2 11 13]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		13
		name             		"fire"
		linkNode         		[2 12 14]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		14
		name             		"time"
		linkNode         		[2 13 15]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		15
		name             		"sample_time"
		linkNode         		[2 14 16]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		16
		name             		"jitter_last"
		linkNode         		[2 15 17]
		scope            		LOCAL_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		17
		name             		"rand1"
		linkNode         		[2 16 18]
		scope            		INPUT_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		18
		name             		"rand2"
		linkNode         		[2 17 19]
		scope            		INPUT_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug            		[1]
	}

	data {
		id               		19
		name             		"jitter"
		linkNode         		[2 18 20]
		scope            		INPUT_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
			initialValue		"0 "
			array {
				size      		"2"
				firstIndex		"1"
			}
		}
		debug            		[1]
	}

	data {
		id               		20
		name             		"phase"
		linkNode         		[2 19 21]
		scope            		INPUT_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
			initialValue		"0 "
			array {
				size      		"2"
				firstIndex		"1"
			}
		}
		debug            		[1]
	}

	data {
		id               		21
		name             		"period"
		linkNode         		[2 20 22]
		scope            		INPUT_DATA
		machine          		1
		dataType         		""
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		6
		}
		dlgFixptMode     		0
		props {
			range {
				minimum		""
				maximum		""
			}
			initialValue		"0 "
			array {
				size      		"2"
				firstIndex		"1"
			}
		}
		debug            		[1]
	}

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

	instance {
		id     		23
		name   		"VZOH/Chart"
		machine		1
		chart  		2
	}

	target {
		id               		24
		name             		"sfun"
		description      		"Default Simulink S-Function Target."
		codeFlags        		" debug=1 telemetry=0 preservenames=0 preservenameswithparent"
						"=0 exportcharts=0 project=0 multiinstanced=0 statebitsets=0 "
						"databitsets=0 comments=1 echo=1 initializer=1 ioformat=1"
		machine          		1
		linkNode         		[1 0 0]
	}
}

⌨️ 快捷键说明

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