📄 ssbdemo.mdl
字号:
OpenScopeImmediately off
FigPos "[399 256 382 346]"
AxisProperties on
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Samples"
YUnits "dB"
YMin "-124.156289978703"
YMax "13.9194893778784"
YLabel "Magnitude, dB"
LineProperties off
LineColors "|[1 0 1]|[0 0 1]"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [180, 83, 230, 127]
ShowName off
Output "Real and imag"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [230, 156, 235, 194]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Sum
Name "Down"
Ports [2, 1]
Position [425, 95, 445, 115]
Inputs "-+"
Port {
PortNumber 1
Name "Lower\nSideband"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "1"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "Frame Based"
Ports []
Position [35, 169, 108, 225]
BackgroundColor "cyan"
DropShadow on
NamePlacement "alternate"
ShowName off
OpenFcn "ssbdemof;"
TreatAsAtomicUnit off
MaskDisplay "disp('Frame-based\\nVersion')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Frame Based"
Location [311, 399, 652, 702]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Reference
Name "I/Q"
Ports [0, 1]
Position [155, 155, 195, 195]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "2"
Phase "[0 pi/2]"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "0.1"
SamplesPerFrame "1"
additionalParams off
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "User-defined"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [575, 46, 580, 94]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [285, 88, 315, 112]
ShowName off
Port {
PortNumber 1
Name "Modulated\nInput"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "1"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [285, 168, 315, 192]
ShowName off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [620, 134, 655, 181]
Location [137, 527, 474, 859]
Open on
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "3"
YMin "-1.2~-1.2"
YMax "1.2~1.2"
DataFormat "Array"
}
Block {
BlockType Reference
Name "Sine Wave"
Ports [0, 1]
Position [25, 85, 65, 125]
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "0.5"
Phase "0"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "0.1"
SamplesPerFrame "1"
additionalParams off
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "User-defined"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Up"
Ports [2, 1]
Position [425, 165, 445, 185]
Port {
PortNumber 1
Name "Upper\nSideband"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "1"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Analytic Signal"
DstPort 1
}
Line {
SrcBlock "Analytic Signal"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
Name "Modulated\nInput"
SrcBlock "Product"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 0]
Branch {
DstBlock "Down"
DstPort 1
}
Branch {
DstBlock "Up"
DstPort 1
}
}
Branch {
Labels [-1, 1]
Points [0, -45]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Up"
DstPort 2
}
Branch {
DstBlock "Down"
DstPort 2
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [35, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0; 0, -60]
DstBlock "Product"
DstPort 2
}
Line {
Name "Lower\nSideband"
SrcBlock "Down"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Points [0, 40]
DstBlock "Scope"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, -35]
DstBlock "Mux"
DstPort 2
}
}
Line {
Name "Upper\nSideband"
Labels [1, 1]
SrcBlock "Up"
SrcPort 1
Points [75, 0; 0, -5]
Branch {
Points [0, -85]
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "I/Q"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Buffered FFT\nFrame Scope"
DstPort 1
}
Annotation {
Name "Demonstration of\nSingle Sideband (SSB)\nModula"
"tion"
Position [125, 29]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -