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

📄 cmlib.mdl

📁 一个matlab的将军模型
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	Location		[180, 299, 678, 599]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion"
	  Position		  [260, 101, 315, 129]
	  DataType		  "boolean"
	}
	Block {
	  BlockType		  Step
	  Name			  "start"
	  Position		  [160, 100, 190, 130]
	  Time			  "steptime"
	  Before		  "initval"
	  After			  "finival"
	  SampleTime		  "sampletime"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [365, 108, 395, 122]
	}
	Line {
	  SrcBlock		  "Data Type Conversion"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "start"
	  SrcPort		  1
	  DstBlock		  "Data Type Conversion"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      "S-Function"
      Name		      "Switched Continuous\nSystem"
      Ports		      [2, 1]
      Position		      [210, 62, 270, 118]
      AncestorBlock	      "cmlib/Switched Continuous\nSystem"
      FunctionName	      "scsb_sfun"
      Parameters	      "nx,nup,nz,nu,x0,swfunc,p0,use_reset,use_param,u"
"se_sd,get_linearcon_param(AR,'CI'),get_linearcon_param(AR,'dI')"
      MaskType		      "SwitchedContinuousSystem"
      MaskDescription	      "This block represents a switched continuous dyn"
"amic system. The switching function is m-file function f(x,u) that outputs th"
"e continuous derivative xdot given continuous variable x and discrete (intege"
"r) input u. Initial continuous set and analysis region parameters are used fo"
"r PIHA conversion purpose only. They do not affect the simulation result. The"
"y must be @linearcon objects imported from the main workspace in the MATLAB c"
"ommand window. "
      MaskPromptString	      "Number of Continuous States|Perform Sampled-Dat"
"a Difference Equation Analysis (beta version)|Number of Controller Outputs|Nu"
"mber of Discrete-Time Controller States|Show State Reset Port|Number of Integ"
"er Inputs from Stateflow Blocks|Initial Conditions|Switching Function m-file|"
"Initial Continuous Set (@linearcon cell array from workspace)|Analysis Region"
" (@linearcon from work space)|Use Parameter Constraints|Default Parameter|Par"
"ameter Constraints (@ linearcon from workspace)|Old Parameter"
      MaskStyleString	      "edit,checkbox,edit,edit,checkbox,edit,edit,edit"
",edit,edit,checkbox,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,off,off,on,on,on,on,on,on,on,off,off,off"
      MaskToolTipString	      "on,on,on,on,on,on,on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,,,,,,,"
      MaskVariables	      "nx=@1;use_sd=@2;nup=@3;nz=@4;use_reset=@5;nu=@6"
";x0=@7;swfunc=&8;ICS=@9;AR=@10;use_param=@11;p0=@12;PaCs=@13;np=@14;"
      MaskInitialization      "scsb_mask_handler(gcb)"
      MaskDisplay	      "plot(scsb_icon(1),scsb_icon(2))"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "1|off|[]|[]|on|1|1||linearcon|linearcon|off|[]|"
"[]|"
    }
    Block {
      BlockType		      SubSystem
      Name		      "VZOH"
      Ports		      [1, 1]
      Position		      [75, 186, 120, 234]
      TreatAsAtomicUnit	      off
      MaskType		      "VariableZeroOrderHold"
      MaskDescription	      "This block represents a Variable Zero-Order Hol"
"d Block. See the CheckMate documentation in the \"/CheckMate/doc/\" directory"
" for a complete description of this block."
      MaskPromptString	      "Initial displacement|Period of sampling time|pe"
"riodic Jitter"
      MaskStyleString	      "edit,edit,edit"
      MaskTunableValueString  "on,on,on"
      MaskCallbackString      "||"
      MaskEnableString	      "on,on,on"
      MaskVisibilityString    "on,on,on"
      MaskToolTipString	      "on,on,on"
      MaskVarAliasString      ",,"
      MaskVariables	      "theta=@1;period=@2;jitter=@3;"
      MaskDisplay	      "image(imread('clock1.jpg','jpeg'))"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "phase|period|jitter"
      System {
	Name			"VZOH"
	Location		[4, 76, 1016, 726]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [130, 270, 150, 280]
	  ShowName		  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Chart"
	  Ports			  [6, 1]
	  Position		  [285, 72, 400, 293]
	  TreatAsAtomicUnit	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Chart"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "rand1"
	      Position		      [20, 101, 40, 119]
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "rand2"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "jitter"
	      Position		      [20, 171, 40, 189]
	      Port		      "3"
	      PortDimensions	      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "phase"
	      Position		      [20, 206, 40, 224]
	      Port		      "4"
	      PortDimensions	      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "period"
	      Position		      [20, 246, 40, 264]
	      Port		      "5"
	      PortDimensions	      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "start"
	      Position		      [20, 281, 40, 299]
	      Port		      "6"
	      PortDimensions	      "1"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 245, 320, 285]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function cmlib 2"
	      Ports		      [6, 2]
	      Position		      [180, 102, 230, 243]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[6 2]"
	      Port {
		PortNumber		2
		Name			"out"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
		DataLogging		off
		DataLoggingNameMode	"SignalName"
		DataLoggingDecimateData	off
		DataLoggingDecimation	"2"
		DataLoggingLimitDataPoints off
		DataLoggingMaxPoints	"5000"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 256, 480, 274]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [460, 101, 480, 119]
	    }
	    Line {
	      Name		      "out"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "start"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "period"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "phase"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "jitter"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "rand2"
	      SrcPort		      1
	      Points		      [120, 0]
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "rand1"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [0, 125]
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [205, 154, 240, 176]
	  ShowName		  off
	  Value			  "jitter"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [160, 191, 195, 209]
	  ShowName		  off
	  Value			  "theta"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [175, 224, 215, 246]
	  ShowName		  off
	  Value			  "period"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant4"
	  Position		  [25, 86, 45, 104]
	  ShowName		  off
	}
	Block {
	  BlockType		  DataTypeConversion
	  Name			  "Data Type Conversion1"
	  Position		  [185, 256, 240, 284]
	  DataType		  "double"
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "MATLAB Fcn"
	  Position		  [105, 84, 140, 106]
	  ShowName		  off
	  MATLABFcn		  "rand(1)"
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "MATLAB Fcn1"
	  Position		  [130, 120, 175, 140]
	  ShowName		  off
	  MATLABFcn		  "rand(1)"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [505, 178, 535, 192]
	  ShowName		  off
	}
	Line {
	  SrcBlock		  "Chart"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  4
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "MATLAB Fcn1"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "MATLAB Fcn"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, -5]
	  DstBlock		  "Data Type Conversion1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant4"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 35]
	    DstBlock		    "MATLAB Fcn1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "MATLAB Fcn"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Data Type Conversion1"
	  SrcPort		  1
	  DstBlock		  "Chart"
	  DstPort		  6
	}
      }
    }
    Annotation {
      Name		      "Customized Blocks"
      Position		      [88, 31]
      FontSize		      14
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "These are customized specifically for the Check"
"Mate toolbox. \nLibrary link should be maintained."
      Position		      [186, 358]
    }
  }
}

# Finite State Machines
# -- File save dated 04-Jun-2003 12:11:02
#
#    Stateflow Version 5.0 (R13) dated Jun 21 2002, 09:11:50
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"cmlib"
		created              		"10-Dec-2001 10:09:24"
		isLibrary            		1
		firstTarget          		24
		sfVersion            		50013001.000001
	}

	chart {
		id                       		2
		name                     		"VZOH/Chart"
		windowPosition           		[207.75 83.25 561.75 414]
		viewLimits               		[56.363 793.833 0 537.894]
		zoomFactor               		1.423
		screen                   		[1 1 1152 864 1.333333333333333]
		treeNode                 		[0 4 0 0]

⌨️ 快捷键说明

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