📄 emulation.mdl
字号:
Model {
Name "Emulation"
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 06 09:33:31 2002"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Jun 13 18:42:25 2002"
ModelVersionFormat "1.%<AutoIncrement:29>"
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 "Emulation"
Location [6, 74, 794, 547]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "darkGreen"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [175, 395, 205, 425]
Orientation "up"
BackgroundColor "yellow"
ShowName off
Value "30"
VectorParams1D on
}
Block {
BlockType Reference
Name "Integer scalar\nto vector"
Ports [1, 1]
Position [550, 288, 630, 332]
Orientation "left"
BackgroundColor "magenta"
ShowName off
SourceBlock "com_util/Integer scalar\nto vector"
SourceType "Decimal to base M vector"
len "[0,127]"
p "2"
}
Block {
BlockType Reference
Name "Integer vector\nto scalar"
Ports [1, 1]
Position [530, 43, 610, 87]
BackgroundColor "magenta"
ShowName off
SourceBlock "com_util/Integer vector\nto scalar"
SourceType "Base M vector to decimal integer"
p "4"
}
Block {
BlockType SubSystem
Name "MAI generator"
Ports [0, 1]
Position [350, 114, 425, 146]
Orientation "left"
BackgroundColor "gray"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('MAI产生器')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "MAI generator"
Location [2, 74, 790, 555]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "darkGreen"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Gain
Name "Gain"
Position [550, 100, 580, 130]
BackgroundColor "green"
Gain "1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Integer vector\nto scalar"
Ports [1, 1]
Position [405, 243, 485, 287]
Orientation "left"
BackgroundColor "magenta"
ShowName off
SourceBlock "com_util/Integer vector\nto scalar"
SourceType "Base M vector to decimal integer"
p "4"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [480, 97, 510, 128]
BackgroundColor "lightBlue"
Operator "AND"
Inputs "2"
}
Block {
BlockType Reference
Name "M-DPSK\nModulator\nPassband"
Ports [1, 1]
Position [285, 239, 360, 291]
Orientation "left"
BackgroundColor "cyan"
SourceBlock "commdigpbndpm2/M-DPSK\nModulator\nPassband"
SourceType "M-DPSK Modulator Passband"
M "8"
InType "Integer"
Enc "Binary"
td "1/100"
numSamp "1"
Fc "3000"
Ph "pi/8"
OutSamp "1/8000"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [275, 160, 350, 190]
BackgroundColor "yellow"
SourceBlock "commsource2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 0 1 1]"
ini_sta "[1 1 0 1 1]"
Ts "1"
frameBased off
sampPerFrame "1"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [400, 155, 435, 195]
BackgroundColor "green"
X0 "0"
SampleTime "1"
RTWStateStorageClass "Auto"
}
Block {
BlockType SubSystem
Name "信道编码"
Ports [1, 1]
Position [535, 249, 605, 281]
Orientation "left"
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "编码长度|信息码元长度"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "N=@1;K=@2;"
MaskDisplay "disp('BCH Encode ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "7|4"
MaskVariableAliases ","
System {
Name "信道编码"
Location [324, 209, 574, 280]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Outport
Name "Out1"
Position [195, 28, 225, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [60, 0; 0, -5]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "信源模块"
Ports [0, 1]
Position [260, 78, 360, 132]
BackgroundColor "red"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "信源模块"
Location [2, 74, 790, 555]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "darkGreen"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Sampled read with\nsynchronized pulse"
Ports [0, 2]
Position [325, 168, 405, 212]
BackgroundColor "red"
ShowName off
LinkData {
BlockName "Pulses divide\nsample time"
DialogParameters {
out_divid "2"
}
}
SourceBlock "com_sour/Sampled read with\nsynchronize"
"d pulse"
SourceType "Read from workspace"
var "randint(100,1,2)"
td "1"
cyc "1"
ini "0"
}
Block {
BlockType Outport
Name "Out1"
Position [435, 173, 465, 187]
BackgroundColor "magenta"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sampled read with\nsynchronized pulse"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [210, 258, 240, 272]
Orientation "left"
BackgroundColor "red"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "信源模块"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "Logical\nOperator"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [90, 0; 0, 150]
DstBlock "信道编码"
DstPort 1
}
Line {
SrcBlock "Integer vector\nto scalar"
SrcPort 1
DstBlock "M-DPSK\nModulator\nPassband"
DstPort 1
}
Line {
SrcBlock "M-DPSK\nModulator\nPassband"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "信道编码"
SrcPort 1
DstBlock "Integer vector\nto scalar"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [250, 110, 320, 140]
Orientation "left"
BackgroundColor "yellow"
SourceBlock "commsource2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 1 0 1 1 1]"
ini_sta "[1 1 0 1 1]"
Ts "1/63"
frameBased off
sampPerFrame "1"
}
Block {
BlockType Reference
Name "Pulses divide\nsample time"
Ports [0, 1]
Position [660, 363, 740, 407]
Orientation "left"
BackgroundColor "red"
ShowName off
SourceBlock "com_sour/Pulses divide\nsample time"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -