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

📄 statechartschedwithoffset.mdl

📁 genetic algorithm direct search RANDOM GAOT V5
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [0, -5; 105, 0]
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 85]
	    DstBlock		    "Unit Delay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [25, 0; 0, 20]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  Points		  [25, 0; 0, -5]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "FunctionCall4"
      Ports		      [0, 1, 0, 1]
      Position		      [600, 239, 700, 281]
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Reusable function"
      RTWFcnNameOpts	      "Use subsystem name"
      FunctionWithSeparateData off
      MaskHideContents	      off
      Port {
	PortNumber		1
	Name			"10 ms 5 ms offset"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      System {
	Name			"FunctionCall4"
	Location		[593, 306, 1451, 662]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  TriggerPort
	  Name			  "function"
	  Ports			  []
	  Position		  [210, 15, 230, 35]
	  TriggerType		  "function-call"
	  StatesWhenEnabling	  "held"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [105, 185, 135, 215]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [320, 150, 350, 180]
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [325, 225, 355, 255]
	  Value			  "0"
	}
	Block {
	  BlockType		  RelationalOperator
	  Name			  "Relational\nOperator"
	  Position		  [250, 192, 280, 223]
	  Operator		  "~="
	  InputSameDT		  off
	  LogicOutDataTypeMode	  "Boolean"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [425, 169, 455, 251]
	  InputSameDT		  off
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay"
	  Position		  [255, 273, 290, 307]
	  Orientation		  "left"
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [635, 198, 665, 212]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Relational\nOperator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Unit Delay"
	  SrcPort		  1
	  Points		  [-25, 0; 0, -75]
	  DstBlock		  "Relational\nOperator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [0, -5; 105, 0]
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 85]
	    DstBlock		    "Unit Delay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Relational\nOperator"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [25, 0; 0, 20]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  Points		  [25, 0; 0, -5]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [4]
      Position		      [975, 94, 1040, 536]
      Floating		      off
      Location		      [1047, 449, 1507, 892]
      Open		      on
      NumInputPorts	      "4"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
	axes4			"%<SignalLabel>"
      }
      YMin		      "-5~-5~-5~-5"
      YMax		      "5~5~5~5"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Line {
      Name		      "100 ms no offset"
      Labels		      [0, 0]
      SrcBlock		      "FunctionCall2"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      3
    }
    Line {
      Name		      "100 ms 50 ms offset"
      Labels		      [0, 0]
      SrcBlock		      "FunctionCall1"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      4
    }
    Line {
      Name		      "10 ms no offset"
      Labels		      [0, 0]
      SrcBlock		      "FunctionCall3"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      Name		      "10 ms 5 ms offset"
      Labels		      [0, 0]
      SrcBlock		      "FunctionCall4"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      1
      Points		      [380, 0]
      DstBlock		      "FunctionCall3"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      2
      Points		      [255, 0]
      DstBlock		      "FunctionCall4"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      3
      Points		      [190, 0]
      DstBlock		      "FunctionCall2"
      DstPort		      trigger
    }
    Line {
      SrcBlock		      "Chart"
      SrcPort		      4
      Points		      [95, 0]
      DstBlock		      "FunctionCall1"
      DstPort		      trigger
    }
  }
}

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

Stateflow {

	machine {
		id                   		1
		name                 		"stateChartSchedwithOffset"
		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                            		[63 36.75 651.75 712.5]
		viewLimits                                		[0.877 749.8 0 832.957]
		zoomFactor                                		1.231
		screen                                    		[1 1 1920 1200 1.333333333333333]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		9
		viewObj                                   		2
		visible                                   		1
		machine                                   		1
		subviewS {
			x1        		4.914
			zoomFactor		1.218
		}
		decomposition                             		CLUSTER_CHART
		firstEvent                                		14
		chartFileNumber                           		1
		disableImplicitCasting                    		1
	}

	state {
		id                           		3
		labelString                  		"Scheduler/\n"
						"du: on every(10,tick) : Rate10ms;\n"
						"du: on every(100,tick) : Rate100ms;"
		position                     		[19.5999 95.111 513.3954 522.7957]
		fontSize                     		12
		chart                        		2
		treeNode                     		[2 4 0 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		SET_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

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

	state {
		id                           		5
		labelString                  		"Periodic/\n"
						"en:  Period_100_ms_1;\n"
						"en: on at( 50,tick):  Period_100_ms_2;"
		position                     		[107.9545 428.1119 264.7056 93.6679]
		fontSize                     		12
		chart                        		2
		treeNode                     		[8 0 0 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		6
		labelString                  		"Periodic/\n"
						"en: Period_10_ms_1;\n"
						"en:on at(5,tick): Period_10_ms_2;"
		position                     		[98.631 226.8707 213.2813 96.0938]
		fontSize                     		12
		chart                        		2
		treeNode                     		[7 0 0 0]
		subviewer                    		2
		type                         		OR_STATE
		decomposition                		CLUSTER_STATE
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		7
		labelString                  		"Sched_10_MS/"
		position                     		[37.7287 166.9403 415.8657 202.7197]
		fontSize                     		12
		chart                        		2
		treeNode                     		[3 6 4 8]
		firstTransition              		10
		subviewer                    		2
		type                         		AND_STATE
		decomposition                		CLUSTER_STATE
		executionOrder               		1
		eml {
			treatIntsAsFixpt         		0
		}
	}

	state {
		id                           		8
		labelString                  		"Sched_100_MS/"
		position                     		[39.1069 387.106 414.6149 197.6369]
		fontSize                     		12
		chart                        		2
		treeNode                     		[3 5 7 0]
		firstTransition              		11
		subviewer                    		2
		type                         		AND_STATE
		decomposition                		CLUSTER_STATE
		executionOrder               		2
		eml {
			treatIntsAsFixpt         		0
		}
	}

	transition {
		id             		9
		labelPosition  		[193.024 72.438 8.307 16.59]
		fontSize       		12
		src {
			intersection		[0 0 1 0 207.4232 65.5654 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.3658 207.4232 95.111 0 0]
		}
		midPoint       		[207.4232 76.7198]
		chart          		2
		linkNode       		[2 0 0]
		dataLimits     		[205.023 209.823 65.565 95.111]
		subviewer      		2
		drawStyle      		SMART
		slide {
		}
		executionOrder 		1
	}

	transition {
		id             		10
		labelPosition  		[196.633 204.197 8.307 16.59]
		fontSize       		12
		src {
			intersection		[0 0 1 0.4074 211.0334 184.4747 0 0]
		}
		dst {
			id          		6
			intersection		[1 0 -1 0.527 211.0334 226.8707 0 0]
		}
		midPoint       		[211.0334 202.3336]
		chart          		2
		linkNode       		[7 0 13]
		dataLimits     		[208.633 213.433 184.475 226.871]
		subviewer      		2
		drawStyle      		SMART
		executionOrder 		1
	}

	transition {
		id             		11
		labelPosition  		[195.948 405.438 8.307 16.59]
		fontSize       		12
		src {
			intersection		[0 0 1 0.3691 210.3474 403.0886 0 -30.8833]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.3868 210.3474 428.1119 0 30.8833]
		}
		midPoint       		[210.3474 411.8835]
		chart          		2
		linkNode       		[8 0 12]
		dataLimits     		[207.947 212.747 403.089 428.112]
		subviewer      		2
		drawStyle      		SMART
		slide {
		}
		executionOrder 		1
	}

	transition {
		id             		12
		labelString    		"Rate100ms"
		labelPosition  		[178.919 532.542 62.765 16.59]
		fontSize       		12
		src {
			id          		5
			intersection		[3 0 1 0.8711 142.0751 521.7798 0 0]
		}
		dst {
			id          		5
			intersection		[3 0 1 0.358 277.8955 521.7798 0 0]
		}
		midPoint       		[177.9953 550.3673]
		chart          		2
		linkNode       		[8 11 0]
		dataLimits     		[142.075 280.295 521.78 556.872]
		stampAngle     		NaN
		subviewer      		2
		slide {
			sticky        		SRC_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	transition {
		id             		13
		labelString    		"Rate10ms"
		labelPosition  		[162.055 330.101 56.304 16.59]
		fontSize       		12
		src {
			id          		6
			intersection		[3 0 1 0.7631 149.1573 322.9645 0 0]
		}
		dst {
			id          		6
			intersection		[3 0 1 0.2539 257.7601 322.9645 0 0]
		}
		midPoint       		[244.8636 343.4465]
		chart          		2
		linkNode       		[7 10 0]
		dataLimits     		[149.157 260.16 322.964 350.062]
		stampAngle     		NaN
		subviewer      		2
		slide {
			sticky        		SRC_STICK
			midPointSticky		1
		}
		executionOrder 		1
	}

	event {
		id         		14
		name       		"Period_10_ms_1"
		linkNode   		[2 0 15]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

	event {
		id         		15
		name       		"Period_10_ms_2"
		linkNode   		[2 14 16]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

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

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

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

	event {
		id         		19
		name       		"Period_100_ms_2"
		linkNode   		[2 18 0]
		scope      		OUTPUT_EVENT
		trigger    		FUNCTION_CALL_EVENT
		machine    		1
	}

	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 + -