?? bernoulli.mdl
字號:
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType MultiPortSwitch
Inputs "4"
zeroidx off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType Width
OutputDataTypeScalingMode "Choose intrinsic data type"
DataType "double"
}
}
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 "Bernoulli"
Location [326, 86, 1276, 439]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [350, 159, 430, 201]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Signal to noise ratio (SNR)"
EbNodB "1"
EsNodB "10"
SNRdB "-44.3"
bitsPerSym "1"
Ps "1e-3"
Tsym "1/9600"
variance "1"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [15, 158, 95, 202]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "15"
Ts "1/9600"
frameBased off
sampPerFrame "260"
orient on
}
Block {
BlockType Scope
Name "Datos"
Ports [1]
Position [125, 254, 155, 286]
Location [6, 55, 330, 294]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Diferencial\ncon Delay"
Ports [1]
Position [320, 264, 350, 296]
Location [327, 760, 651, 999]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Differential\nDecoder"
Ports [1, 1]
Position [555, 157, 645, 203]
SourceBlock "commsrccod2/Differential\nDecoder"
SourceType "Differential Decoder"
ShowPortLabels on
InitCond "0"
}
Block {
BlockType Reference
Name "Differential\nEncoder"
Ports [1, 1]
Position [125, 157, 215, 203]
SourceBlock "commsrccod2/Differential\nEncoder"
SourceType "Differential Encoder"
ShowPortLabels on
InitCond "0"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [770, 128, 945, 232]
Format "long_e"
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [675, 37, 750, 88]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "17"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "GMSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [450, 154, 525, 206]
SourceBlock "commdigbbndcpm2/GMSK\nDemodulator\nBaseband"
SourceType "GMSK Demodulator Baseband"
ShowPortLabels on
OutputType "Bit"
BT ".3"
pulseLength "1"
preHistory "1"
phaseOffset "0"
samplesPerSymbol "157"
traceBack "16"
}
Block {
BlockType Reference
Name "GMSK\nModulator\nBaseband"
Ports [1, 1]
Position [245, 154, 320, 206]
SourceBlock "commdigbbndcpm2/GMSK\nModulator\nBaseband"
SourceType "GMSK Modulator Baseband"
ShowPortLabels on
inputType "Bit"
BT ".3"
pulseLength "1"
preHistory "1"
phaseOffset "0"
samplesPerSymbol "157"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [245, 263, 280, 297]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "1/9600"
NumDelays "17"
}
Block {
BlockType ComplexToRealImag
Name "Parte\nReal"
Ports [1, 1]
Position [365, 79, 395, 111]
Output "Real"
}
Block {
BlockType Scope
Name "Salida\nDecodificador"
Ports [1]
Position [680, 163, 710, 197]
Location [696, 597, 1020, 836]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Salida\nDiferencial"
Ports [1]
Position [260, 74, 290, 106]
Location [6, 352, 325, 592]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Se馻l Demodulada\ncon Delay"
Ports [1]
Position [570, 79, 600, 111]
Location [326, 485, 650, 724]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Se馻l Modulada"
Ports [1]
Position [430, 78, 460, 112]
Location [6, 650, 330, 889]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "GMSK\nModulator\nBaseband"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -85]
DstBlock "Parte\nReal"
DstPort 1
}
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
}
Line {
SrcBlock "Parte\nReal"
SrcPort 1
DstBlock "Se馻l Modulada"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "GMSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [-5, 0; 10, 0]
Branch {
DstBlock "Differential\nEncoder"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Datos"
DstPort 1
}
Branch {
Points [0, -130]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "GMSK\nDemodulator\nBaseband"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -85]
DstBlock "Se馻l Demodulada\ncon Delay"
DstPort 1
}
Branch {
DstBlock "Differential\nDecoder"
DstPort 1
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
DstBlock "Diferencial\ncon Delay"
DstPort 1
}
Line {
SrcBlock "Differential\nDecoder"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -105]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Branch {
DstBlock "Salida\nDecodificador"
DstPort 1
}
}
Line {
SrcBlock "Differential\nEncoder"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "GMSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Integer Delay"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Salida\nDiferencial"
DstPort 1
}
}
Annotation {
Name "Delay de 17 bits, cuando el tiempo por bit es d"
"e 1/9600"
Position [296, 341]
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -