📄 dsss.mdl
字号:
Model {
Name "DSSS"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Mon Jan 28 09:58:58 2002"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Jan 28 17:00:49 2002"
ModelVersionFormat "1.%<AutoIncrement:26>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "0.0001"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints on
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "DSSS"
Location [47, 129, 596, 325]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Scope
Name "Carrier"
Ports [1]
Position [330, 24, 360, 56]
Floating off
Location [21, 220, 1037, 459]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "10000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Reference
Name "Data Sequence"
Ports [0, 1]
Position [30, 98, 110, 142]
SourceBlock "commsource2/Binary Vector\nNoise Generator"
SourceType "Binary Vector Noise Generator"
n "1"
prob "0.5"
seed "12345"
Ts "1/1e6"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType SubSystem
Name "Receiver"
Ports [1, 1]
Position [310, 89, 405, 151]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Receiver"
Location [43, 234, 963, 443]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [20, 100, 50, 114]
Port "1"
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [655, 100, 685, 130]
SaturateOnIntegerOverflow on
}
Block {
BlockType DiscreteFilter
Name "Bandpass"
Position [85, 87, 145, 123]
Numerator "[0.0675 0 -0.1349 0 0.0675]"
Denominator "[1 -2.6736 2.9924 -1.6746 0.4128]"
SampleTime "1/110e6"
Realization "auto"
}
Block {
BlockType DiscreteFilter
Name "Barker Code2"
Position [500, 57, 560, 93]
Numerator "[1 -1 1 1 -1 1 1 1 -1 -1 -1]"
Denominator "[1]"
SampleTime "1/11e6"
Realization "auto"
}
Block {
BlockType DiscreteFilter
Name "Barker Code3"
Position [500, 112, 560, 148]
Numerator "[1 -1 1 1 -1 1 1 1 -1 -1 -1]"
Denominator "[1]"
SampleTime "1/11e6"
Realization "auto"
}
Block {
BlockType Constant
Name "Constant1"
Position [655, 150, 685, 180]
Value "0.1"
VectorParams1D on
}
Block {
BlockType Sin
Name "Cosin1"
Position [180, 35, 210, 65]
Amplitude "1"
Frequency "2*pi*11e6"
Phase "pi/4"
SampleTime "1/110e6"
VectorParams1D on
}
Block {
BlockType Reference
Name "Decimation"
Ports [1, 1]
Position [400, 113, 465, 147]
FontSize 10
SourceBlock "dspmlti3/FIR\nDecimation"
SourceType "FIR Decimation"
h "[1 0 0 0 0 0 0 0 0 0 0]"
D "10"
framing "Maintain input frame size"
}
Block {
BlockType Reference
Name "Decimation1"
Ports [1, 1]
Position [400, 58, 465, 92]
FontSize 10
SourceBlock "dspmlti3/FIR\nDecimation"
SourceType "FIR Decimation"
h "[1 0 0 0 0 0 0 0 0 0 0]"
D "10"
framing "Maintain input frame size"
}
Block {
BlockType Scope
Name "Despread"
Ports [1]
Position [595, 24, 625, 56]
Floating off
Location [10, 261, 1026, 500]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "10000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Despread1"
Ports [1]
Position [595, 114, 625, 146]
Floating off
Location [20, 530, 1036, 769]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-0.175"
YMax "0.175"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "10000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType DiscreteFilter
Name "Lowpass2"
Position [310, 57, 370, 93]
Numerator "[0.0004 0.0017 0.0025 0.0017 0.0004]"
Denominator "[1 -3.1806 3.8612 -2.1122 0.4383]"
SampleTime "1/110e6"
Realization "auto"
}
Block {
BlockType DiscreteFilter
Name "Lowpass3"
Position [310, 112, 370, 148]
Numerator "[0.0004 0.0017 0.0025 0.0017 0.0004]"
Denominator "[1 -3.1806 3.8612 -2.1122 0.4383]"
SampleTime "1/110e6"
Realization "auto"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [240, 56, 285, 89]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [240, 111, 285, 144]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [710, 107, 740, 138]
Operator ">"
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [725, 55, 775, 95]
NamePlacement "alternate"
FontSize 10
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Signum
Name "Sign"
Position [810, 60, 840, 90]
}
Block {
BlockType Sin
Name "Sin1"
Position [180, 90, 210, 120]
Amplitude "1"
Frequency "2*pi*11e6"
Phase "3*pi/4"
SampleTime "1/110e6"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out1"
Position [865, 70, 895, 84]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Bandpass"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, -25]
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "Product3"
DstPort 2
}
}
Line {
SrcBlock "Cosin1"
SrcPort 1
Points [0, 15]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Sin1"
SrcPort 1
Points [0, 15]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Lowpass2"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
DstBlock "Lowpass3"
DstPort 1
}
Line {
SrcBlock "Lowpass3"
SrcPort 1
DstBlock "Decimation"
DstPort 1
}
Line {
SrcBlock "Lowpass2"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -