📄 cpstas_withoutraiscos_hif.mdl
字号:
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
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 "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
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"
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
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 "cpstas_withoutraiscos_hif"
Location [2, 74, 1014, 699]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [845, 295, 885, 325]
Orientation "down"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [360, 361, 390, 399]
Orientation "left"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [815, 192, 835, 223]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "BPSK Signal"
Ports [0, 1]
Position [15, 257, 125, 333]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "BPSK Signal"
Location [2, 74, 1014, 699]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [620, 81, 650, 139]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise"
Ports [0, 1]
Position [230, 265, 260, 295]
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "[10^(1/10)/10.23e6]"
Ts "1/10.23e6"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [140, 69, 200, 111]
ShowName off
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "1/500"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [445, 93, 475, 122]
ShowName off
Output "Real and imag"
}
Block {
BlockType Constant
Name "Constant"
Position [185, 125, 215, 155]
Value "0"
SampleTime "1/500"
}
Block {
BlockType Sin
Name "Cosine Wave"
Ports [0, 1]
Position [470, 40, 500, 70]
SineType "Time based"
Frequency "2*pi*14.56e6"
Phase "pi/2"
SampleTime "1/14.56e6/4"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [235, 75, 280, 105]
MATLABFcn "u*2*2^(1/2)-2^(1/2)"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [550, 77, 580, 108]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [550, 107, 580, 138]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex1"
Ports [2, 1]
Position [305, 71, 335, 144]
ShowName off
Input "Real and imag"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [470, 135, 500, 165]
SineType "Time based"
Frequency "2*pi*14.56e6"
SampleTime "1/14.56e6/4"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [365, 95, 400, 125]
SampleTime "1/14.56e6/4"
}
Block {
BlockType Outport
Name "Signal"
Position [680, 103, 710, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex1"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Cosine Wave"
SrcPort 1
Points [10, 0; 0, 30]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [10, 0; 0, -20]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0; 0, -15]
DstBlock "Real-Imag to\nComplex1"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Real-Imag to\nComplex1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Signal"
DstPort 1
}
}
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [565, 193, 595, 222]
ShowName off
Output "Real and imag"
}
Block {
BlockType Reference
Name "Cosine"
Ports [1, 1]
Position [205, 287, 295, 333]
Orientation "left"
FontName "Arial"
SourceBlock "commsynccomp2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
ShowPortLabels on
Ac "1"
Fc "14.57e6"
Kc "1"
Ph "pi/3"
ts "1/14.56e6/4"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [360, 420, 390, 450]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay2"
Ports [1, 1]
Position [665, 157, 690, 183]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Delay3"
Ports [1, 1]
Position [665, 227, 690, 253]
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter"
Position [260, 162, 320, 198]
Numerator "ones (1,6)"
Denominator "1"
SampleTime "-1"
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter1"
Position [260, 222, 320, 258]
Numerator "ones (1,6)"
Denominator "1"
SampleTime "-1"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [560, 94, 635, 146]
ShowName off
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "40"
numNewFrames "10"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-3.25790941653084"
xMax "3"
yMin "-3.24016506957499"
yMax "3"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber on
FigPos "[232 106 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [345, 163, 380, 197]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "6"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [345, 223, 380, 257]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "6"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Gain
Name "Gain"
Position [420, 355, 450, 385]
Orientation "left"
Gain "-0.002"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [480, 197, 520, 223]
NamePlacement "alternate"
Gain "0.4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -