📄 san_psk.mdl
字号:
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Sine Wave"
Ports [0, 1]
Position [190, 143, 235, 187]
BackgroundColor "green"
DropShadow on
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude ".5"
Frequency "2e3"
Phase "0"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1/48e3"
SamplesPerFrame "1"
additionalParams off
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
ResetState "Restart at time zero"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [365, 245, 425, 275]
VariableName "psk"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [125, 63, 205, 107]
BackgroundColor "green"
DropShadow on
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
M "2"
polarity "Positive"
dataType "Same as input"
}
Block {
BlockType SubSystem
Name "background1"
Ports []
Position [432, 30, 901, 406]
BackgroundColor "yellow"
ShowName off
FontName "Arial"
FontSize 9
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "background1"
Location [209, 325, 575, 532]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Line {
SrcBlock "Rate Transition"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [35, 0; 0, 15]
Branch {
Points [0, -40]
DstBlock "Product"
DstPort 2
}
Branch {
Points [50, 0]
DstBlock "Scope1"
DstPort 3
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Rate Transition"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nVCO"
SrcPort 1
Points [-35, 0]
Branch {
Points [-45, 0; 0, -50]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nVCO1"
SrcPort 1
Points [-35, 0]
Branch {
Points [-40, 0; 0, 75]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [25, 0]
DstBlock "Digital\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [10, 0; 0, 15]
DstBlock "Digital\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
Points [225, 0]
Branch {
DstBlock "Compare\nTo Zero"
DstPort 1
}
Branch {
Points [0, 30]
Branch {
Points [0, 100]
DstBlock "Product3"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 3
}
}
}
Line {
SrcBlock "Digital\nFilter Design1"
SrcPort 1
Points [220, 0; 0, -135]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Digital\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design2"
SrcPort 1
Points [-20, 0]
Branch {
Points [0, -35]
DstBlock "Discrete-Time\nVCO"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Discrete-Time\nVCO1"
DstPort 1
}
}
Line {
SrcBlock "Compare\nTo Zero"
SrcPort 1
DstBlock "Scope"
DstPort 2
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -35]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 195]
DstBlock "Product2"
DstPort 2
}
}
Annotation {
Name "Demodulating a BPSK using Costas Loop"
Position [660, 425]
ForegroundColor "cyan"
DropShadow on
UseDisplayTextAsClickCallback off
FontName "Arial Rounded MT Bold"
FontSize 18
FontWeight "bold"
FontAngle "italic"
}
Annotation {
Name "Santosh Shah, The LNMIIT, Jaipur\nsantosh.jnt@g"
"mail.com\nDate:- 05/10/07"
Position [657, 472]
ForegroundColor "blue"
BackgroundColor "green"
DropShadow on
UseDisplayTextAsClickCallback off
FontSize 14
}
Annotation {
Name "Costas Loop\nReceiver"
Position [951, 333]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
Annotation {
Name "Transmitter"
Position [129, 265]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
}
}
MatData {
NumRecords 4
DataRecord {
Tag DataTag3
Data " %)30 . T.4! 8 ( @ % "
"\" $ ! 0 % 0 #@ $ \", <VED96)A<@ !F=G1O;VP"
" &9I;'1E<FUA;F%G97( 8W5R<F5N=%]F:6QT !F:6QT97)-861E0GD &-U<G)E;G1&"
"<P 8W5R<F5N=$YA;64 !V97)S:6]N &UC;V1E :$9I9P "
" #@ ) , & \" ( !0 @ ! 0 $ !"
"0 $ T ! &@ &-U<G)E;G1P86YE; !D97-I9VX #@ #@ & "
" \" 0 !0 @ ! !@ $ $ 8 !D97-I9VX X "
"#P\"P !@ @ \" 4 ( 0 $ ! 4 ! 3 0 "
"+X !486< 5F5R<VEO;@ &ES1&5S:6=N960 "
" !297-P;VYS951Y<&4 4W5B5'EP90 $1E<VEG;DUE=&AO9 "
" !#=7)R96YT1G, 4F5S<&]N<V54>7!E0U-(5&%G %-T871I8U)E<W!O;G-E "
" !#;VUP;VYE;G1S . 2 8 ( ! % \" $ "
" 2 0 0 $@ '-I9V=U:2YD97-I9VYP86YE; X X !@ "
" @ & 4 ( 0 $ ! D ( \\#\\. "
", 8 ( \"0( % \" $ ! 0 \" $ 0 X "
" P !@ @ $ 4 ( 0 ( ! ! @!L< #@ # "
" & \" 0 !0 @ ! @ $ $ \" &QP . 0 "
" 8 ( ! % \" $ - 0 0 #0 &9I;'1D97"
",N<F5M97H . P 8 ( @ % \" $ ! 0 "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -