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

📄 gsmk.mdl

📁 GSM系统中GMSK的simulink仿真程序
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "gsmk"
    Location		    [5, 58, 641, 446]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      DigitalClock
      Name		      "DClk"
      Position		      [15, 114, 45, 126]
      ForegroundColor	      "red"
      BackgroundColor	      "yellow"
      SampleTime	      "0.0005"
    }
    Block {
      BlockType		      RandomNumber
      Name		      "Data"
      Position		      [30, 57, 105, 73]
      ForegroundColor	      "cyan"
      Variance		      "10"
      Seed		      "100"
      SampleTime	      "1*pi/50"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn2"
      Position		      [85, 16, 145, 34]
      ForegroundColor	      "darkGreen"
      Expr		      "(-1)^ceil(u)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn3"
      Position		      [380, 121, 440, 139]
      ForegroundColor	      "darkGreen"
      Expr		      "cos(u)"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn4"
      Position		      [380, 236, 440, 254]
      ForegroundColor	      "darkGreen"
      Expr		      "cos(u)"
    }
    Block {
      BlockType		      SubSystem
      Name		      "G pulse"
      Ports		      [1, 1]
      Position		      [130, 92, 170, 108]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"G pulse"
	Location		[285, 267, 749, 486]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 38, 55, 52]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Fcn
	  Name			  "Fcn4"
	  Position		  [80, 36, 140, 54]
	  ForegroundColor	  "darkGreen"
	  Expr			  "exp(-0.1*(50*u/pi+1/2)*(50*u/pi+1/2))-exp(-"
"0.1*(50*u/pi-1/2)*(50*u/pi-1/2))"
	}
	Block {
	  BlockType		  DiscreteIntegrator
	  Name			  "Integrator1"
	  Ports			  [1, 1]
	  Position		  [190, 28, 220, 62]
	  IntegratorMethod	  "Integration: Forward Euler"
	  ExternalReset		  "none"
	  InitialConditionSource  "internal"
	  SampleTime		  "0.0001"
	  UpperSaturationLimit	  "1"
	  LowerSaturationLimit	  "-1"
	  ICPrevOutput		  "DiscIntNeverNeededParam"
	  ICPrevScaledInput	  "DiscIntNeverNeededParam"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [245, 38, 275, 52]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Fcn4"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integrator1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Fcn4"
	  SrcPort		  1
	  DstBlock		  "Integrator1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [100, 125, 145, 155]
      Gain		      "20*pi"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [235, 88, 275, 122]
      Gain		      "50000/4"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [240, 238, 280, 272]
      Gain		      "1500/8"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain3"
      Position		      [245, 8, 285, 42]
      Gain		      "1/2"
    }
    Block {
      BlockType		      DiscreteIntegrator
      Name		      "Integrator1"
      Ports		      [1, 1]
      Position		      [290, 88, 320, 122]
      IntegratorMethod	      "Integration: Forward Euler"
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      SampleTime	      "0.0001"
      UpperSaturationLimit    "1"
      LowerSaturationLimit    "-1"
      ICPrevOutput	      "DiscIntNeverNeededParam"
      ICPrevScaledInput	      "DiscIntNeverNeededParam"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [475, 14, 495, 61]
      ForegroundColor	      "gray"
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux2"
      Ports		      [2, 1]
      Position		      [380, 39, 400, 86]
      ForegroundColor	      "gray"
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux4"
      Ports		      [2, 1]
      Position		      [525, 219, 545, 266]
      ForegroundColor	      "gray"
      Inputs		      "2"
    }
    Block {
      BlockType		      Product
      Name		      "P"
      Ports		      [2, 1]
      Position		      [190, 55, 205, 90]
    }
    Block {
      BlockType		      Sum
      Name		      "S"
      Ports		      [2, 1]
      Position		      [350, 112, 365, 148]
      ForegroundColor	      "blue"
    }
    Block {
      BlockType		      Sum
      Name		      "S1"
      Ports		      [2, 1]
      Position		      [350, 227, 365, 263]
      ForegroundColor	      "blue"
    }
    Block {
      BlockType		      Scope
      Name		      "S10"
      Ports		      [1]
      Position		      [545, 28, 560, 52]
      BackgroundColor	      "gray"
      Location		      [652, 111, 1668, 294]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "3"
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "S11"
      Ports		      [1]
      Position		      [580, 233, 595, 257]
      BackgroundColor	      "gray"
      Location		      [359, 629, 1375, 789]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-1"
      YMax		      "1"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "S12"
      Ports		      [1]
      Position		      [225, 153, 240, 177]
      BackgroundColor	      "gray"
      Location		      [91, 418, 1016, 596]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-25"
      YMax		      "25"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "S13"
      Ports		      [1]
      Position		      [415, 53, 430, 77]
      BackgroundColor	      "gray"
      Location		      [5, 458, 419, 636]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-25"
      YMax		      "25"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "S2"
      Ports		      [1]
      Position		      [145, 193, 160, 217]
      BackgroundColor	      "gray"
      Location		      [5, 470, 609, 687]
      Open		      on
      NumInputPorts	      "1"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-25"
      YMax		      "25"
      SaveName		      "ScopeData1"
      DataFormat	      "Array"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Fcn
      Name		      "ramp"
      Position		      [75, 90, 110, 110]
      ForegroundColor	      "darkGreen"
      Expr		      "(u-floor(50*u/pi)*pi/50)*50/pi-1/2"
    }
    Line {
      SrcBlock		      "ramp"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	DstBlock		"G pulse"
	DstPort			1
      }
      Branch {
	Points			[0, 105]
	DstBlock		"S2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "G pulse"
      SrcPort		      1
      DstBlock		      "P"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "Integrator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "P"
      SrcPort		      1
      Points		      [0, 30]
      Branch {
	DstBlock		"Gain1"
	DstPort			1
      }
      Branch {
	Points			[0, 60]
	Branch {
	  DstBlock		  "S12"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 90]
	  DstBlock		  "Gain2"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Fcn2"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"P"
	DstPort			1
      }
      Branch {
	DstBlock		"Gain3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "S10"
      DstPort		      1
    }
    Line {
      SrcBlock		      "S"
      SrcPort		      1
      DstBlock		      "Fcn3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn3"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -80]
	DstBlock		"Mux1"
	DstPort			2
      }
      Branch {
	Points			[0, 100]
	DstBlock		"Mux4"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "DClk"
      SrcPort		      1
      Points		      [0, 0]
      Branch {
	Points			[0, 20]
	DstBlock		"Gain"
	DstPort			1
      }
      Branch {
	Points			[0, -20]
	DstBlock		"ramp"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [160, 0]
      Branch {
	DstBlock		"S"
	DstPort			2
      }
      Branch {
	Points			[0, 95]
	DstBlock		"S1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "S1"
      SrcPort		      1
      DstBlock		      "Fcn4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      DstBlock		      "S1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Data"
      SrcPort		      1
      Points		      [0, -15; -45, 0; 0, -25]
      DstBlock		      "Fcn2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Integrator1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"S"
	DstPort			1
      }
      Branch {
	Points			[0, -30]
	DstBlock		"Mux2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Mux2"
      SrcPort		      1
      DstBlock		      "S13"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain3"
      SrcPort		      1
      Points		      [75, 0]
      Branch {
	DstBlock		"Mux1"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Mux4"
      SrcPort		      1
      DstBlock		      "S11"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Fcn4"
      SrcPort		      1
      Points		      [30, 0; 0, 10]
      DstBlock		      "Mux4"
      DstPort		      2
    }
    Annotation {
      Name		      "Gaussian pulse phase"
      Position		      [380, 289]
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "Gaussian pulse frequence"
      Position		      [404, 172]
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "lmk_kml@hotmail.com"
      Position		      [100, 333]
    }
  }
}

⌨️ 快捷键说明

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