📄 bpsk.mdl
字号:
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SignalSpecification
Dimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
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 ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "BPSK"
Location [2, 78, 1150, 813]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator1"
Ports [0, 1]
Position [15, 223, 95, 267]
BackgroundColor "green"
DropShadow on
DialogController "commDDGCreate"
DialogControllerArgs "DataTag0"
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "0.5"
seed "61"
Ts "1/200"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Compare\nTo Zero"
Ports [1, 1]
Position [840, 125, 870, 155]
SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo "
"Zero"
SourceType "Compare To Zero"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
relop ">"
LogicOutDataTypeMode "uint8"
ZeroCross off
}
Block {
BlockType SubSystem
Name "Constellation\nScatter Plot"
Ports [1]
Position [850, 386, 885, 424]
NamePlacement "alternate"
CopyFcn "xlsfunxy([],[],[],'CopyBlock')"
DeleteFcn "xlsfunxy([],[],[],'DeleteBlock')"
LoadFcn "xlsfunxy([],[],[],'LoadBlock')"
StartFcn "xlsfunxy([],[],[],'Start')"
StopFcn "xlsfunxy([],[],[],'Stop')"
NameChangeFcn "xlsfunxy([],[],[],'NameChange')"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "My XY scope."
MaskDescription "XY scope using MATLAB graph window. First inpu"
"t is used as time base. Enter plotting ranges."
MaskHelp "This block can be used to explore limit cycles."
" Look at the m-file xlsfunxy.m to see how it works."
MaskPromptString "x-min:|x-max:|y-min:|y-max:|Refresh rate|Line/M"
"arker style|Sample time:"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "xmin=@1;xmax=@2;ymin=@3;ymax=@4;refresh=@5;styl"
"e=@6;st=@7;"
MaskDisplay "plot([.05 .95 .95 .05 .05],[.45 .45 .95 .95 .45"
"], 0.5+cos(0:0.1:2*pi)*0.3,0.7+sin(0:0.1:2*pi)*0.2)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "-1.75|1.75|-1.75|1.75|150|'.'|-1"
MaskTabNameString ",,,,,,"
System {
Name "Constellation\nScatter Plot"
Location [400, 463, 1008, 630]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "x"
Position [110, 57, 140, 73]
NamePlacement "alternate"
IconDisplay "Port number"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [190, 45, 225, 80]
ShowName off
Output "Real and imag"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [280, 46, 310, 79]
ShowName off
Inputs "2"
}
Block {
BlockType "S-Function"
Name "xlsfunxy"
Ports [1]
Position [350, 55, 400, 75]
ShowName off
FunctionName "xlsfunxy"
Parameters "[xmin xmax ymin ymax],refresh,style,st"
}
Line {
SrcBlock "x"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "xlsfunxy"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Constellation\nScatter Plot 2"
Tag "ScatterPlot"
Ports [1]
Position [865, 505, 905, 545]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "4"
offsetEye "0"
numTraces "40"
numNewFrames "4"
LineMarkers "*"
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.5"
xMax "1.5"
yMin "-1.5"
yMax "1.5"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[520 374 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Digital\nFilter Design"
Ports [1, 1]
Position [550, 87, 620, 133]
BackgroundColor "cyan"
DropShadow on
UserDataPersistent on
UserData "DataTag1"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mwdsp_browser_bugfix_var off
}
Block {
BlockType Reference
Name "Digital\nFilter Design1"
Ports [1, 1]
Position [535, 352, 605, 398]
BackgroundColor "cyan"
DropShadow on
UserDataPersistent on
UserData "DataTag2"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mwdsp_browser_bugfix_var off
}
Block {
BlockType Reference
Name "Digital\nFilter Design2"
Ports [1, 1]
Position [630, 227, 685, 273]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -