📄 fsk2.mdl
字号:
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.2.0"
TargetFcnLib "ansi_tfl_tmw.mat"
TargetLibSuffix ""
TargetPreCompLibLocation ""
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
GenerateTestInterfaces off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeERTFirstTime on
ERTFirstTimeCompliant off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Rounding
Operator "floor"
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType ToFile
Filename "untitled.mat"
MatrixName "ans"
Decimation "1"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "fsk2"
Location [2, 78, 1278, 749]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [865, 67, 940, 118]
FontSize 10
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "M-FSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [715, 87, 790, 133]
FontSize 10
SourceBlock "commdigbbndfm2/M-FSK\nDemodulator\nBaseband"
SourceType "M-FSK Demodulator Baseband"
M "8"
OutType "Integer"
Dec "Binary"
freqSep "100"
numSamp "100"
outDataType "double"
}
Block {
BlockType Reference
Name "M-FSK\nModulator\nBaseband"
Ports [1, 1]
Position [225, 85, 300, 135]
FontSize 10
SourceBlock "commdigbbndfm2/M-FSK\nModulator\nBaseband"
SourceType "M-FSK Modulator Baseband"
M "8"
InType "Integer"
Enc "Binary"
freqSep "100"
phaseType "Continuous"
numSamp "100"
outDataType "double"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [65, 88, 145, 132]
FontName "Arial"
FontSize 10
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels on
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 "8"
seed "37"
Ts "0.01"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Reference
Name "Scalar Quantizer\nDecoder"
Ports [1, 1]
Position [525, 83, 620, 137]
SourceBlock "dspquant2/Scalar Quantizer\nDecoder"
SourceType "Scalar Quantizer Decoder"
CBsource "Specify via dialog"
invalidin "Clip"
codebook "[1:10]"
dataType "double"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "11"
}
Block {
BlockType Reference
Name "Scalar Quantizer\nEncoder"
Ports [1, 1]
Position [370, 82, 465, 138]
NamePlacement "alternate"
DialogController "dspfixptddg.SQEncoder"
SourceBlock "dspquant2/Scalar Quantizer\nEncoder"
SourceType "Scalar Quantizer Encoder"
paramSrc "Specify via dialog"
partType "Bounded"
BBoundary "[1:10]"
UBoundary "[2:9]"
SearchMethod "Linear"
tieBreakRule "Choose the lower index"
outQU off
outQError off
codebook "[1.5:9.5]"
outStatus off
invalidin "Clip"
additionalParams off
idtype "int32"
allowOverrides on
roundingMode "Floor"
overflowMode off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [880, 196, 910, 229]
Floating off
Location [-3, 56, 1277, 773]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType ToFile
Name "To File"
Position [1010, 80, 1070, 110]
Filename "fsk1.mat"
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "M-FSK\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 110; 650, 0]
Branch {
DstBlock "Scope"
DstPort 2
}
Branch {
Points [0, -115]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
}
}
Line {
SrcBlock "M-FSK\nDemodulator\nBaseband"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [15, 0; 0, 95]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
Points [0, 0]
DstBlock "To File"
DstPort 1
}
Line {
SrcBlock "M-FSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Scalar Quantizer\nEncoder"
DstPort 1
}
Line {
SrcBlock "Scalar Quantizer\nEncoder"
SrcPort 1
DstBlock "Scalar Quantizer\nDecoder"
DstPort 1
}
Line {
SrcBlock "Scalar Quantizer\nDecoder"
SrcPort 1
DstBlock "M-FSK\nDemodulator\nBaseband"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -