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

📄 shifenge.mdl

📁 该模型用于搭建了一个基于时分割乘法器的电子式电能表的模型
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	  BlockType		  Integrator
	  Name			  "Integrator2"
	  Ports			  [1, 1]
	  Position		  [915, 405, 945, 435]
	  IgnoreLimit		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [790, 402, 820, 433]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [860, 277, 890, 308]
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Reference
	  Name			  "Repeating\nSequence"
	  Ports			  [0, 1]
	  Position		  [25, 110, 55, 140]
	  SourceBlock		  "simulink/Sources/Repeating\nSequence"
	  SourceType		  "Repeating table"
	  ShowPortLabels	  on
	  rep_seq_t		  "[0 0.00005 0.0001]"
	  rep_seq_y		  "[0 40 0]"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract"
	  Ports			  [2, 1]
	  Position		  [110, 112, 140, 143]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Subtract1"
	  Ports			  [2, 1]
	  Position		  [285, 192, 315, 223]
	  Inputs		  "+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutScaling		  "2^-10"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [485, 77, 535, 133]
	  InputSameDT		  off
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch1"
	  Position		  [890, 154, 940, 206]
	  Threshold		  "0.1"
	  InputSameDT		  off
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch3"
	  Position		  [845, 409, 895, 461]
	  Threshold		  "0.1"
	  InputSameDT		  off
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [1025, 450, 1085, 480]
	  VariableName		  "zhenshi "
	  MaxDataPoints		  "inf"
	  SampleTime		  "-1"
	  SaveFormat		  "Structure"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace1"
	  Position		  [1065, 80, 1125, 110]
	  VariableName		  "shifenge "
	  MaxDataPoints		  "inf"
	  SampleTime		  "-1"
	  SaveFormat		  "Structure"
	}
	Block {
	  BlockType		  Scope
	  Name			  "View S2"
	  Ports			  [1]
	  Position		  [265, 108, 285, 142]
	  Floating		  off
	  Location		  [13, 206, 926, 660]
	  Open			  off
	  NumInputPorts		  "1"
	  List {
	    ListType		    AxesTitles
	    axes1		    "current"
	  }
	  TimeRange		  "0.7000000000000001"
	  YMin			  "-1.994204103556322"
	  YMax			  "-1.994203027386788"
	  SaveName		  "system_current1"
	  DataFormat		  "StructureWithTime"
	  MaxDataPoints		  "5000000"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "View S3"
	  Ports			  [1]
	  Position		  [700, 28, 720, 62]
	  Floating		  off
	  Location		  [13, 206, 926, 660]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "current"
	  }
	  TimeRange		  "0.7000000000000001"
	  YMin			  "-1.994204103556322"
	  YMax			  "-1.994203027386788"
	  SaveName		  "system_current2"
	  DataFormat		  "StructureWithTime"
	  MaxDataPoints		  "5000000"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [1025, 110, 1055, 124]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [985, 415, 1015, 429]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Repeating\nSequence"
	  SrcPort		  1
	  Points		  [15, 0; 0, -5]
	  DstBlock		  "Subtract"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [15, 0; 0, -60]
	  DstBlock		  "Subtract"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Subtract1"
	  SrcPort		  1
	  Points		  [40, 0; 0, -105]
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  Points		  [0, 0; 125, 0]
	  Branch {
	    Points		    [0, -60]
	    DstBlock		    "View S3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [180, 0; 0, 60]
	    DstBlock		    "Switch1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [55, 0; 0, -205]
	    Branch {
	      Points		      [100, 0]
	      DstBlock		      "Switch"
	      DstPort		      3
	    }
	    Branch {
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	  }
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  Points		  [10, 0; 0, 10]
	  Branch {
	    Points		    [0, -20]
	    DstBlock		    "To Workspace1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Subtract"
	  SrcPort		  1
	  Points		  [0, 0; 60, 0]
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Subtract1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -5]
	    DstBlock		    "View S2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  Points		  [45, 0; 0, -165]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Clock"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Switch1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [0, -30]
	  DstBlock		  "Switch1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch1"
	  SrcPort		  1
	  Points		  [0, -75]
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator2"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "To Workspace"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Out2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Switch3"
	  SrcPort		  1
	  DstBlock		  "Integrator2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Switch3"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Clock2"
	  SrcPort		  1
	  Points		  [30, 0; 0, -35]
	  DstBlock		  "Switch3"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant4"
	  SrcPort		  1
	  Points		  [15, 0; 0, 10]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, -120]
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [5, 0; 0, 105; -70, 0]
	  DstBlock		  "Switch3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  Points		  [0, 0; 15, 0]
	  Branch {
	    Points		    [0, 195]
	    DstBlock		    "Product"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Subtract1"
	    DstPort		    2
	  }
	}
      }
    }
    Block {
      BlockType		      Sin
      Name		      "is"
      Ports		      [0, 1]
      Position		      [20, 405, 50, 435]
      SineType		      "Time based"
      Amplitude		      "10"
      Frequency		      "314"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "us"
      Ports		      [0, 1]
      Position		      [25, 295, 55, 325]
      SineType		      "Time based"
      Amplitude		      "5"
      Frequency		      "314"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      1
      Points		      [0, -75]
      DstBlock		      "Display2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "us"
      SrcPort		      1
      Points		      [0, 35]
      DstBlock		      "Subsystem"
      DstPort		      1
    }
    Line {
      SrcBlock		      "is"
      SrcPort		      1
      Points		      [625, 0]
      DstBlock		      "Subsystem"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Subsystem"
      SrcPort		      2
      Points		      [0, 65]
      DstBlock		      "Display3"
      DstPort		      1
    }
    Annotation {
      Position		      [437, 82]
      UseDisplayTextAsClickCallback off
    }
  }
}

⌨️ 快捷键说明

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