📄 cpstas_withoutraiscos.mdl
字号:
}
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"
Location [2, 82, 1270, 720]
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 [920, 305, 960, 335]
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 [435, 361, 465, 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 [890, 192, 910, 223]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "BPSK Signal"
Ports [0, 1]
Position [90, 257, 200, 333]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "BPSK Signal"
Location [2, 82, 1270, 720]
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 "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 "30"
Ts "1/100"
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/100"
}
Block {
BlockType Sin
Name "Cosine Wave"
Ports [0, 1]
Position [470, 40, 500, 70]
SineType "Time based"
Frequency "2*pi*14.56e2"
Phase "pi/2"
SampleTime "1/14.56e2/32"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [235, 75, 280, 105]
MATLABFcn "u*2-1"
}
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.56e2"
SampleTime "1/14.56e2/32"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [365, 95, 400, 125]
SampleTime "1/14.56e2/32"
}
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 [640, 193, 670, 222]
ShowName off
Output "Real and imag"
}
Block {
BlockType Reference
Name "Cosine"
Ports [1, 1]
Position [280, 287, 370, 333]
Orientation "left"
FontName "Arial"
SourceBlock "commsynccomp2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
ShowPortLabels on
Ac "1"
Fc "14.50e2"
Kc "1"
Ph "pi/3"
ts "1/14.56e2/32"
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [435, 420, 465, 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 [740, 157, 765, 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 [740, 227, 765, 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 [385, 162, 445, 198]
Numerator "[ 0.0073 0.0093 0.0153 0.0246 0.036"
"5 0.0496 0.0627 0.0746 0.0840 0.0901 0.0922 0.0901 0.0"
"840 0.0746 0.0627 0.0496 0.0365 0.0246 0.0153 0.0093 0."
"0073]"
Denominator "1"
SampleTime "-1"
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter1"
Position [385, 222, 445, 258]
Numerator "[ 0.0073 0.0093 0.0153 0.0246 0.036"
"5 0.0496 0.0627 0.0746 0.0840 0.0901 0.0922 0.0901 0.0"
"840 0.0746 0.0627 0.0496 0.0365 0.0246 0.0153 0.0093 0."
"0073]"
Denominator "1"
SampleTime "-1"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [635, 94, 710, 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 "-1.03322999999999"
xMax "1.10187149999999"
yMin "-1.06755074999988"
yMax "1.06755075000011"
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 [330, 163, 365, 197]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "16"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [325, 223, 360, 257]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "16"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Gain
Name "Gain"
Position [515, 355, 545, 385]
Orientation "left"
Gain "-3"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [555, 197, 595, 223]
NamePlacement "alternate"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -