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

📄 test41a.mdl

📁 锯齿波信号发生器 函数信号源采用数字存储方式存储一到几个周期
💻 MDL
📖 第 1 页 / 共 4 页
字号:
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Logic
      Operator		      "AND"
      Inputs		      "2"
      IconShape		      "rectangular"
      AllPortsSameDT	      on
      OutDataTypeMode	      "Logical (see Configuration Parameters: Optimization)"
      LogicDataType	      "uint(8)"
      OutDataTypeStr	      "Inherit: Logical (see Configuration Parameters: Optimization)"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      SourceOfInitialOutputValue "Dialog"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      CheckFcnCallInpInsideContextMsg off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      AccumDataTypeStr	      "Inherit: Inherit via internal rule"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
  }
  System {
    Name		    "exe41a"
    Location		    [312, 229, 973, 667]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      SubSystem
      Name		      "4-2"
      Ports		      [10, 5]
      Position		      [220, 43, 390, 302]
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"4-2"
	Location		[23, 106, 1266, 750]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "CLK"
	  Position		  [215, 318, 245, 332]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "LD"
	  Position		  [255, 723, 285, 737]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "D1"
	  Position		  [550, 728, 580, 742]
	  Port			  "3"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "D0"
	  Position		  [405, 728, 435, 742]
	  Port			  "4"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "D2"
	  Position		  [720, 728, 750, 742]
	  Port			  "5"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "D3"
	  Position		  [880, 728, 910, 742]
	  Port			  "6"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "T"
	  Position		  [1050, 748, 1080, 762]
	  Port			  "7"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "P"
	  Position		  [1000, 748, 1030, 762]
	  Port			  "8"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "CR"
	  Position		  [995, 598, 1025, 612]
	  Port			  "9"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Inport
	  Name			  "EN"
	  Position		  [200, 188, 230, 202]
	  Port			  "10"
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "J-K\nFlip-Flop"
	  Ports			  [3, 2]
	  Position		  [356, 235, 454, 285]
	  Orientation		  "up"
	  ShowName		  off
	  SourceBlock		  "simulink_extras/Flip Flops/J-K\nFlip-Flop"
	  SourceType		  "JKFlipFlop"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  initial_condition	  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "J-K\nFlip-Flop1"
	  Ports			  [3, 2]
	  Position		  [496, 235, 594, 285]
	  Orientation		  "up"
	  ShowName		  off
	  SourceBlock		  "simulink_extras/Flip Flops/J-K\nFlip-Flop"
	  SourceType		  "JKFlipFlop"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  initial_condition	  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "J-K\nFlip-Flop2"
	  Ports			  [3, 2]
	  Position		  [661, 235, 759, 285]
	  Orientation		  "up"
	  ShowName		  off
	  SourceBlock		  "simulink_extras/Flip Flops/J-K\nFlip-Flop"
	  SourceType		  "JKFlipFlop"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  initial_condition	  "0"
	}
	Block {
	  BlockType		  Reference
	  Name			  "J-K\nFlip-Flop3"
	  Ports			  [3, 2]
	  Position		  [811, 235, 909, 285]
	  Orientation		  "up"
	  ShowName		  off
	  SourceBlock		  "simulink_extras/Flip Flops/J-K\nFlip-Flop"
	  SourceType		  "JKFlipFlop"
	  ShowPortLabels	  "FromPortIcon"
	  SystemSampleTime	  "-1"
	  FunctionWithSeparateData off
	  RTWMemSecFuncInitTerm	  "Inherit from model"
	  RTWMemSecFuncExecute	  "Inherit from model"
	  RTWMemSecDataConstants  "Inherit from model"
	  RTWMemSecDataInternal	  "Inherit from model"
	  RTWMemSecDataParameters "Inherit from model"
	  initial_condition	  "0"
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator1"
	  Ports			  [5, 1]
	  Position		  [973, 170, 1097, 190]
	  Orientation		  "up"
	  ShowName		  off
	  Inputs		  "5"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator10"
	  Ports			  [2, 1]
	  Position		  [810, 355, 845, 390]
	  Orientation		  "up"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator11"
	  Ports			  [2, 1]
	  Position		  [890, 355, 925, 390]
	  Orientation		  "up"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator12"
	  Ports			  [2, 1]
	  Position		  [365, 445, 400, 480]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "XOR"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator13"
	  Ports			  [2, 1]
	  Position		  [525, 445, 560, 480]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "XOR"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator14"
	  Ports			  [2, 1]
	  Position		  [695, 445, 730, 480]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "XOR"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator15"
	  Ports			  [2, 1]
	  Position		  [840, 450, 875, 485]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "XOR"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator16"
	  Ports			  [2, 1]
	  Position		  [320, 535, 355, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator17"
	  Ports			  [2, 1]
	  Position		  [420, 535, 455, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator18"
	  Ports			  [2, 1]
	  Position		  [475, 535, 510, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator19"
	  Ports			  [2, 1]
	  Position		  [570, 535, 605, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator2"
	  Ports			  [1, 1]
	  Position		  [275, 309, 305, 341]
	  ShowName		  off
	  Operator		  "NOT"
	  Inputs		  "1"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator20"
	  Ports			  [2, 1]
	  Position		  [655, 535, 690, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator21"
	  Ports			  [2, 1]
	  Position		  [745, 535, 780, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator22"
	  Ports			  [2, 1]
	  Position		  [800, 535, 835, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator23"
	  Ports			  [2, 1]
	  Position		  [895, 535, 930, 570]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NAND"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator24"
	  Ports			  [3, 1]
	  Position		  [955, 679, 990, 741]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  Inputs		  "3"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator25"
	  Ports			  [2, 1]
	  Position		  [530, 630, 565, 665]
	  Orientation		  "up"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator26"
	  Ports			  [3, 1]
	  Position		  [702, 630, 738, 665]
	  Orientation		  "up"
	  ShowName		  off
	  Inputs		  "3"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator27"
	  Ports			  [4, 1]
	  Position		  [847, 630, 883, 665]
	  Orientation		  "up"
	  ShowName		  off
	  Inputs		  "4"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator3"
	  Ports			  [1, 1]
	  Position		  [275, 670, 305, 700]
	  Orientation		  "up"
	  ShowName		  off
	  Operator		  "NOT"
	  Inputs		  "1"
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator4"
	  Ports			  [2, 1]
	  Position		  [330, 355, 365, 390]
	  Orientation		  "up"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator5"
	  Ports			  [2, 1]
	  Position		  [415, 355, 450, 390]
	  Orientation		  "up"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator6"
	  Ports			  [2, 1]
	  Position		  [485, 355, 520, 390]
	  Orientation		  "up"
	  ShowName		  off
	  AllPortsSameDT	  off
	}
	Block {
	  BlockType		  Logic
	  Name			  "Logical\nOperator7"
	  Ports			  [2, 1]
	  Position		  [565, 355, 600, 390]
	  Orientation		  "up"
	  ShowName		  off

⌨️ 快捷键说明

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