📄 xinyi2.mdl
字号:
Model {
Name "xinyi2"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Mon May 16 15:10:19 2005"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "user"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon May 16 16:01:45 2005"
ModelVersionFormat "1.%<AutoIncrement:3>"
ConfigurationManager "None"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
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"
InvalidFcnCallConnMsg "error"
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"
TryForcingSFcnDF off
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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt on
RTWExpressionDepthLimit 5
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 "xinyi2"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [920, 204, 1000, 246]
FontSize 10
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "1237"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "10"
SNRdB "10"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "BCH Decoder"
Ports [1, 2]
Position [430, 368, 510, 412]
FontSize 10
SourceBlock "commblkcod2/BCH Decoder"
SourceType "BCH Decoder"
n "15"
k "5"
t "3"
}
Block {
BlockType Reference
Name "BCH Encoder"
Ports [1, 1]
Position [535, 33, 615, 77]
FontSize 10
SourceBlock "commblkcod2/BCH Encoder"
SourceType "BCH Encoder"
n "15"
k "5"
}
Block {
BlockType Constant
Name "Constant"
Position [155, 315, 185, 345]
Value "30"
VectorParams1D on
}
Block {
BlockType Reference
Name "Edge\nDetector"
Ports [1, 1]
Position [805, 520, 855, 560]
FontSize 10
SourceBlock "dspswit3/Edge\nDetector"
SourceType "Edge Detector"
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2]
Position [30, 246, 115, 299]
FontSize 10
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Workspace"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "M-PSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [665, 355, 740, 405]
FontSize 10
SourceBlock "commdigbbndpm2/M-PSK\nDemodulator\nBaseband"
SourceType "M-PSK Demodulator Baseband"
M "8"
OutType "Integer"
Dec "Binary"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType Reference
Name "M-PSK\nModulator\nBaseband"
Ports [1, 1]
Position [675, 29, 750, 81]
FontSize 10
SourceBlock "commdigbbndpm2/M-PSK\nModulator\nBaseband"
SourceType "M-PSK Modulator Baseband"
M "8"
InType "Integer"
Enc "Binary"
Ph "pi/8"
numSamp "1"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [410, 25, 470, 55]
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
}
Block {
BlockType Reference
Name "PM\nDemodulator\nBaseband"
Ports [1, 1]
Position [795, 362, 870, 408]
FontSize 10
SourceBlock "commanabbnd2/PM\nDemodulator\nBaseband"
SourceType "PM Demodulator Baseband"
Ph "0"
Kc "1"
num "[4.57 9.14 4.57]*.01"
den "[1 -1.3108 .4936]"
HzPerVolt "1"
ts "0.001"
}
Block {
BlockType Reference
Name "PM\nModulator\nBaseband"
Ports [1, 1]
Position [810, 32, 885, 78]
FontSize 10
SourceBlock "commanabbnd2/PM\nModulator\nBaseband"
SourceType "PM Modulator Baseband"
Ph "0"
Kc "1"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [110, 13, 190, 57]
FontSize 10
SourceBlock "commsource2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 1 1]"
ini_sta "[1 1 0 1]"
Ts "1"
frameBased off
sampPerFrame "1"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Position [700, 523, 745, 557]
PulseType "Time-based"
Amplitude "1"
Period "2"
PulseWidth "50"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [130, 422, 160, 453]
Operator ">="
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [330, 30, 350, 50]
ShowName off
IconShape "rectangular"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Line {
SrcBlock "M-PSK\nModulator\nBaseband"
SrcPort 1
DstBlock "PM\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "PM\nModulator\nBaseband"
SrcPort 1
Points [5, 0; 0, 170]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 125; -225, 0]
DstBlock "PM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "PM\nDemodulator\nBaseband"
SrcPort 1
Points [0, 70; -225, 0]
DstBlock "M-PSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Edge\nDetector"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -