bingxingacquisition.mdl

来自「GPS三颗卫星的并行捕获仿真」· MDL 代码 · 共 1,338 行 · 第 1/2 页

MDL
1,338
字号
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [420, 158, 450, 172]
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Look-Up\nTable"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up\nTable"
	  SrcPort		  1
	  Points		  [15, 0; 0, 40]
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [15, 0; 0, 50]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "S4"
      Ports		      [2, 1]
      Position		      [610, 109, 710, 151]
      FontSize		      10
      TreatAsAtomicUnit	      on
      System {
	Name			"S4"
	Location		[458, 235, 956, 535]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [40, 33, 70, 47]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [45, 73, 75, 87]
	  Port			  "2"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [2, 1]
	  Position		  [325, 141, 355, 174]
	  ExternalReset		  "rising"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up\nTable"
	  Position		  [110, 66, 145, 94]
	  FontSize		  10
	  InputValues		  "[0,1]"
	  OutputValues		  "[-1,1]"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [185, 33, 215, 62]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [255, 108, 285, 137]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator"
	  Position		  [240, 168, 285, 202]
	  PulseType		  "Time based"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  Signum
	  Name			  "Sign"
	  Position		  [385, 145, 415, 175]
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave"
	  Position		  [170, 115, 200, 145]
	  SineType		  "Time based"
	  Frequency		  "40*pi"
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [450, 153, 480, 167]
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Look-Up\nTable"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up\nTable"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, 65]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 25]
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20]
	  DstBlock		  "Integrator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sign"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "S5"
      Ports		      [2, 1]
      Position		      [615, 249, 715, 291]
      FontSize		      10
      TreatAsAtomicUnit	      on
      System {
	Name			"S5"
	Location		[458, 235, 956, 535]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [40, 33, 70, 47]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [45, 73, 75, 87]
	  Port			  "2"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [2, 1]
	  Position		  [325, 141, 355, 174]
	  ExternalReset		  "rising"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up\nTable"
	  Position		  [110, 66, 145, 94]
	  FontSize		  10
	  InputValues		  "[0,1]"
	  OutputValues		  "[-1,1]"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [185, 33, 215, 62]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [255, 108, 285, 137]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator"
	  Position		  [240, 168, 285, 202]
	  PulseType		  "Time based"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  Signum
	  Name			  "Sign"
	  Position		  [385, 145, 415, 175]
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave"
	  Position		  [170, 115, 200, 145]
	  SineType		  "Time based"
	  Frequency		  "40*pi"
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [450, 153, 480, 167]
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Look-Up\nTable"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up\nTable"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, 65]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 25]
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20]
	  DstBlock		  "Integrator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sign"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "S6"
      Ports		      [2, 1]
      Position		      [625, 394, 725, 436]
      FontSize		      10
      TreatAsAtomicUnit	      on
      System {
	Name			"S6"
	Location		[458, 235, 956, 535]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [40, 33, 70, 47]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [45, 73, 75, 87]
	  Port			  "2"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  Ports			  [2, 1]
	  Position		  [325, 141, 355, 174]
	  ExternalReset		  "rising"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up\nTable"
	  Position		  [110, 66, 145, 94]
	  FontSize		  10
	  InputValues		  "[0,1]"
	  OutputValues		  "[-1,1]"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [185, 33, 215, 62]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Product1"
	  Ports			  [2, 1]
	  Position		  [255, 108, 285, 137]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator"
	  Position		  [240, 168, 285, 202]
	  PulseType		  "Time based"
	  PulseWidth		  "50"
	}
	Block {
	  BlockType		  Signum
	  Name			  "Sign"
	  Position		  [385, 145, 415, 175]
	}
	Block {
	  BlockType		  Sin
	  Name			  "Sine Wave"
	  Position		  [170, 115, 200, 145]
	  SineType		  "Time based"
	  Frequency		  "40*pi"
	  SampleTime		  "0.001"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [450, 153, 480, 167]
	}
	Line {
	  SrcBlock		  "In2"
	  SrcPort		  1
	  DstBlock		  "Look-Up\nTable"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up\nTable"
	  SrcPort		  1
	  Points		  [10, 0; 0, -25]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  Points		  [10, 0; 0, 65]
	  DstBlock		  "Product1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sine Wave"
	  SrcPort		  1
	  DstBlock		  "Product1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product1"
	  SrcPort		  1
	  Points		  [10, 0; 0, 25]
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator"
	  SrcPort		  1
	  Points		  [10, 0; 0, -20]
	  DstBlock		  "Integrator"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "Sign"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sign"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [1]
      Position		      [830, 114, 860, 146]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "200"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [1]
      Position		      [830, 254, 860, 286]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [1]
      Position		      [835, 399, 865, 431]
      Location		      [1, 56, 1025, 737]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [3, 1]
      Position		      [465, 215, 500, 305]
      ShowName		      off
      Inputs		      "|+++"
      ShowAdditionalParam     on
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Line {
      SrcBlock		      "From\nWorkspace"
      SrcPort		      1
      Points		      [35, 0; 0, 20]
      DstBlock		      "S1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "From\nWorkspace1"
      SrcPort		      1
      Points		      [35, 0; 0, 20]
      DstBlock		      "S2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator1"
      SrcPort		      1
      Points		      [35, 0; 0, -5]
      Branch {
	Points			[0, -30]
	DstBlock		"S2"
	DstPort			2
      }
      Branch {
	Points			[0, 0; 305, 0; 0, -30]
	DstBlock		"S5"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "From\nWorkspace2"
      SrcPort		      1
      Points		      [40, 0; 0, 25]
      DstBlock		      "S3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator2"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	Points			[0, -25]
	DstBlock		"S3"
	DstPort			2
      }
      Branch {
	Points			[350, 0; 0, -55]
	DstBlock		"S6"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "S1"
      SrcPort		      1
      Points		      [30, 0; 0, 145]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S2"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "S3"
      SrcPort		      1
      Points		      [30, 0; 0, -155]
      DstBlock		      "Sum"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [60, 0]
      Branch {
	DstBlock		"S5"
	DstPort			1
      }
      Branch {
	Points			[0, -140]
	DstBlock		"S4"
	DstPort			1
      }
      Branch {
	Points			[0, 145]
	DstBlock		"S6"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "PN Sequence\nGenerator"
      SrcPort		      1
      Points		      [30, 0; 0, -5]
      Branch {
	Points			[0, -25]
	DstBlock		"S1"
	DstPort			2
      }
      Branch {
	DstBlock		"S4"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "S4"
      SrcPort		      1
      DstBlock		      "Scope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S5"
      SrcPort		      1
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S6"
      SrcPort		      1
      DstBlock		      "Scope2"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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