📄 tiaopinn4.mdl
字号:
Model {
Name "tiaopinN4"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "1000.0"
SolverMode "SingleTasking"
Solver "VariableStepDiscrete"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep "auto"
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 "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWOptions " -aRollThreshold=2"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
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 off
Created "Wed Jun 03 14:12:10 1998"
Creator "mikem"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Jun 28 13:06:35 2002"
ModelVersionFormat "1.%<AutoIncrement:80>"
ConfigurationManager "none"
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 "tiaopinN4"
Location [2, 70, 798, 533]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "75"
AutoZoom off
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Channel"
Ports [0, 1, 0, 0, 0]
Position [400, 308, 510, 372]
ShowPortLabels on
MaskType "Rayleigh&AwgnChannel"
MaskDisplay "disp('Rayleigh&Awgn\\nChannel')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Channel"
Location [375, 175, 695, 271]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Reference
Name "AWGN\nchannel"
Ports [1, 1, 0, 0, 0]
Position [160, 33, 240, 77]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
seed "123456"
noiseMode "Variance from mask"
EsNodB "10"
Ps "1"
Tsym "1"
variance "1"
}
Block {
BlockType Reference
Name "Rayleigh noise\ngenerator"
Ports [0, 1, 0, 0, 0]
Position [25, 28, 105, 72]
SourceBlock "commsource/Rayleigh noise\ngenerator"
SourceType "Rayleigh noise generator"
alpha "1"
seed "17658"
Ts "1"
}
Block {
BlockType Outport
Name "Out1"
Position [265, 43, 295, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Rayleigh noise\ngenerator"
SrcPort 1
Points [35, 0]
DstBlock "AWGN\nchannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nchannel"
SrcPort 1
Points [0, -5]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [835, 354, 865, 376]
ShowName off
Value "2.0"
}
Block {
BlockType Reference
Name "Counter1"
Ports [3, 1, 0, 0, 0]
Position [810, 262, 890, 338]
ShowName off
SourceBlock "commutil/Counter"
SourceType "Resettable number counter"
thld ".2"
}
Block {
BlockType Display
Name "Display"
Ports [1, 0, 0, 0, 0]
Position [989, 345, 1081, 410]
Orientation "down"
ShowName off
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1, 0, 0, 0]
Position [995, 278, 1075, 322]
ShowName off
SourceBlock "commsink/Error Rate Calculation"
SourceType "Error Rate Calculation"
Ts "[1, 0.95]"
N "0"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1, 0, 0, 0]
Position [350, 272, 380, 303]
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1, 0, 0, 0]
Position [730, 247, 760, 278]
Inputs "2"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [910, 292, 940, 323]
ShowName off
Operator ">="
}
Block {
BlockType Scope
Name "Scope"
Ports [2, 0, 0, 0, 0]
Position [475, 156, 505, 189]
Floating off
Location [5, 30, 805, 583]
Open off
NumInputPorts "2"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-7~-5"
YMax "7~5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1, 0, 0, 0, 0]
Position [430, 459, 460, 491]
Floating off
Location [5, 30, 805, 583]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "0"
YMax "60"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Signal source and\nsynchronization pulse"
Ports [0, 3, 0, 0, 0]
Position [125, 254, 190, 366]
ForegroundColor "blue"
ShowPortLabels on
System {
Name "Signal source and\nsynchronization pulse"
Location [396, 113, 790, 281]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Demux
Name "Demux"
Ports [1, 2, 0, 0, 0]
Position [115, 77, 150, 113]
ForegroundColor "blue"
ShowName off
Outputs "2"
}
Block {
BlockType Reference
Name "Pulses divide\nsample time1"
Ports [0, 1, 0, 0, 0]
Position [15, 73, 95, 117]
SourceBlock "commsource/Pulses divide\nsample time"
SourceType "Pulse generator"
samp_time "1"
out_divid "[1 10]"
offset "[0 0]"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [225, 75, 255, 105]
WaveForm "square"
Amplitude "1"
Frequency "10"
Units "Hertz"
}
Block {
BlockType Outport
Name "Source signal"
Position [325, 78, 355, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Spread spectrum pulse"
Position [190, 128, 220, 142]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Symbol interval pulse"
Position [290, 20, 320, 40]
Port "3"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Pulses divide\nsample time1"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [20, 0]
DstBlock "Spread spectrum pulse"
DstPort 1
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [0, -5]
DstBlock "Source signal"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [15, 0; 0, -55]
DstBlock "Symbol interval pulse"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -