📄 s060_elg.mdl
字号:
Model {
Name "S060_elg"
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 "Thu Mar 27 11:31:57 2003"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "张森"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Mar 27 13:56:33 2003"
ModelVersionFormat "1.%<AutoIncrement:5>"
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 "S060_elg"
Location [2, 73, 1022, 687]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "."
Ports [2, 1]
Position [595, 150, 670, 190]
Orientation "down"
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "channel"
MaskHelp "The input signal at input port 1 has AWGN added"
" to it, and is output at the output port. The noise power is determined by t"
"he input signal power and the SNR value of the 2nd input. The 2nd input's un"
"its are in dB."
MaskDisplay "disp('AWGN \\n SNR')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "."
Location [155, 187, 891, 400]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [235, 155, 255, 175]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [75, 30, 95, 50]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "AWGN\n信道"
Ports [2, 1]
Position [545, 58, 625, 102]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
seed "123456"
noiseMode "Variance from port"
EsNodB "10"
SNRdB "10"
Ps "1"
Tsym "1"
variance "1"
FrameBased off
nChans "1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [300, 155, 410, 175]
ShowName off
Expr "1/10^(u[1]/10)/2"
}
Block {
BlockType Gain
Name "Gain"
Position [390, 92, 415, 118]
Gain "1/256"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [450, 98, 480, 122]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Terminator
Name "Terminator_1"
Position [260, 115, 270, 125]
ShowName off
}
Block {
BlockType Reference
Name "脉冲信号"
Ports [0, 1]
Position [40, 98, 120, 142]
SourceBlock "com_sour/Pulses divide\nsample time"
SourceType "Pulse generator"
samp_time "tss"
out_divid "1"
offset "0"
}
Block {
BlockType SubSystem
Name "内积"
Ports [2, 1]
Position [325, 94, 345, 116]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Dot Product"
MaskDescription "Inner (dot) product.\ny=sum(u1.*u2)"
MaskHelp "Computes the inner (dot) product of the inp"
"uts: sum(u1.*u2). The inputs are vectors of the same length. Output is a sca"
"lar."
MaskDisplay "disp('.\\n')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "内积"
Location [412, 193, 632, 348]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 25, 35, 45]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [15, 90, 35, 110]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [65, 55, 90, 75]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [1, 1]
Position [125, 55, 145, 75]
IconShape "rectangular"
Inputs "+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "out_1"
Position [185, 55, 205, 75]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "in_2"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "移位寄存器"
Ports [2, 2]
Position [165, 88, 245, 132]
SourceBlock "com_util/Register-shift"
SourceType "Register-shift"
shft_out "[1:256]"
thrhld ".5"
}
Block {
BlockType Outport
Name "out_1"
Position [655, 70, 675, 90]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "移位寄存器"
SrcPort 2
DstBlock "Terminator_1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "内积"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "脉冲信号"
SrcPort 1
DstBlock "移位寄存器"
DstPort 2
}
Line {
SrcBlock "移位寄存器"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "内积"
DstPort 1
}
Branch {
Points [0, 10]
DstBlock "内积"
DstPort 2
}
}
Line {
SrcBlock "in_2"
SrcPort 1
Points [35, 0]
Branch {
Points [390, 0; 0, 30]
DstBlock "AWGN\n信道"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "移位寄存器"
DstPort 1
}
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [40, 0; 0, -20]
DstBlock "AWGN\n信道"
DstPort 2
}
Line {
SrcBlock "AWGN\n信道"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Digital Down\nConvert"
Ports [1, 2]
Position [540, 244, 620, 286]
Orientation "left"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "DDC"
MaskHelp "Down shifts signal by the Carrier Frequency. O"
"utputs inphase and quadrature components of converted input signal."
MaskDisplay "disp('DDC')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Digital Down\nConvert"
Location [334, 382, 980, 611]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "analog\nin"
Position [135, 95, 155, 115]
Port "1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -