📄 evmtestmodel.mdl
字号:
Ports [1]
Position [895, 180, 985, 210]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [895, 235, 985, 265]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Reference
Name "EVM\nC S-function"
Ports [1, 1]
Position [590, 321, 640, 379]
SourceBlock "EVM_Library/EVM\nC S-function"
SourceType "Error Vector Magnitude"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sigconst "myConst"
}
Block {
BlockType Reference
Name "EVM\nEasy EML"
Ports [1, 1]
Position [590, 416, 640, 474]
SourceBlock "EVM_Library/EVM\nEasy EML"
SourceType "Error Vector Magnitude"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sigconst "myConst"
doRMS on
}
Block {
BlockType Reference
Name "EVM\nFast EML"
Ports [1, 1]
Position [595, 511, 645, 569]
SourceBlock "EVM_Library/EVM\nFast EML"
SourceType "Error Vector Magnitude"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sigconst "myConst"
}
Block {
BlockType Reference
Name "EVM\nSimulink Blocks"
Ports [1, 1]
Position [585, 106, 635, 164]
SourceBlock "EVM_Library/EVM\nSimulink Blocks"
SourceType "Error Vector Magnitude"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sigconst "myConst"
doRMS on
}
Block {
BlockType Gain
Name "Gain"
Position [795, 178, 845, 212]
NamePlacement "alternate"
Gain "100"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "General QAM\nModulator\nBaseband"
Ports [1, 1]
Position [230, 109, 305, 161]
SourceBlock "commdigbbndam3/General QAM\nModulator\nBaseband"
SourceType "General QAM Modulator Baseband"
SigCon "myConst"
outDtype "double"
outWordLen "16"
outUDDataType "sfix(16)"
outFracLenMode "Best precision"
outFracLen "15"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [690, 150, 730, 190]
Orientation "down"
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run on
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Gain
Name "Normalization"
Position [725, 17, 795, 63]
Gain "1/max(abs(myConst))"
}
Block {
BlockType Reference
Name "RMS"
Ports [1, 1]
Position [615, 22, 690, 58]
SourceBlock "dspstat3/RMS"
SourceType "RMS"
run off
reset_popup "None"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [90, 113, 170, 157]
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mul "4"
seed "37"
Ts "1"
frameBased on
sampPerFrame "128"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "dB Conversion"
Ports [1, 1]
Position [785, 231, 845, 269]
SourceBlock "dspmathops/dB Conversion"
SourceType "dB Conversion"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
dBtype "dB"
intype "Power"
R "1"
fuzz off
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "General QAM\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "General QAM\nModulator\nBaseband"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Add"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "EVM\nSimulink Blocks"
DstPort 1
}
Branch {
Points [0, 215]
Branch {
DstBlock "EVM\nC S-function"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
DstBlock "EVM\nEasy EML"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "EVM\nFast EML"
DstPort 1
}
}
}
Branch {
Points [0, -90]
DstBlock "Add"
DstPort 2
}
}
Line {
SrcBlock "EVM\nSimulink Blocks"
SrcPort 1
Points [70, 0]
Branch {
DstBlock "Display"
DstPort 1
}
Branch {
DstBlock "Mean"
DstPort 1
}
}
Line {
SrcBlock "EVM\nC S-function"
SrcPort 1
DstBlock "Display1"
DstPort 1
}
Line {
SrcBlock "EVM\nEasy EML"
SrcPort 1
DstBlock "Display2"
DstPort 1
}
Line {
SrcBlock "EVM\nFast EML"
SrcPort 1
DstBlock "Display3"
DstPort 1
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "RMS"
DstPort 1
}
Line {
SrcBlock "RMS"
SrcPort 1
DstBlock "Normalization"
DstPort 1
}
Line {
SrcBlock "Normalization"
SrcPort 1
DstBlock "Display4"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Display5"
DstPort 1
}
Line {
SrcBlock "dB Conversion"
SrcPort 1
DstBlock "Display6"
DstPort 1
}
Line {
SrcBlock "Mean"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "dB Conversion"
DstPort 1
}
}
Annotation {
Name "% EVM"
Position [1010, 190]
}
Annotation {
Name "dB EVM"
Position [1012, 248]
}
Annotation {
Name "This model shows how to use the EVM blocks\npro"
"vided in the EVM_Library file.\nThe constellation being used is defined in th"
"e\nmodel InitFcn as the variable myConst.\n\nThe top path simply estimates EV"
"M by computing\nit directly using knowledge of the transmitted signals.\n\nTh"
"e next four paths use the EVM blocks from the\nlibrary and compute the EVM wi"
"thout knowledge of\nthe transmitted signals.\n\nThe blocks following \"EVM Si"
"mulink Blocks\" show\nhow to compute a running mean of the EVM and\nto report"
" it as a percentage or in dB."
Position [247, 391]
BackgroundColor "cyan"
DropShadow on
FontSize 16
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 365A;@"
}
}
# Finite State Machines
#
# Stateflow Version 6.6 (R2007a) dated Jan 30 2007, 03:33:34
#
#
Stateflow {
machine {
id 1
name "evmTestModel"
created "30-Jul-2007 14:18:58"
isLibrary 0
firstTarget 2
sfVersion 66014000
}
target {
id 2
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -