📄 fsk.mdl
字号:
Model {
Name "fsk"
Version 4.00
Description "AM mdulator, given modulation index, modulation and"
" carrier frequencies and Carrier Amplitude"
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Mar 02 23:24:37 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Mar 20 22:17:48 2001"
ModelVersionFormat "1.%<AutoIncrement:43>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "20/100"
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"
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"
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
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
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 "fsk"
Location [63, 101, 755, 550]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Bernoulli Random\nBinary Generator"
Ports [0, 1]
Position [20, 143, 100, 187]
FontSize 10
SourceBlock "commsource2/Bernoulli Random\nBinary Generator"
SourceType "Bernoulli Random Binary Generator"
P "[0.4]"
seed "[12345]"
Ts "1/100"
frameBased off
sampPerFrame "1"
orient on
}
Block {
BlockType Sin
Name "Carrier wave"
Position [75, 80, 105, 110]
Amplitude "1"
Frequency "2*pi*1.2e3"
Phase "0"
SampleTime "1/(16e3)"
VectorParams1D on
Port {
PortNumber 1
Name "1200 Hz signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sin
Name "Carrier wave2"
Position [70, 320, 100, 350]
Amplitude "1"
Frequency "2*pi*2.2e3"
Phase "0"
SampleTime "1/(16e3)"
VectorParams1D on
Port {
PortNumber 1
Name "2200 Hz signal"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "Constant"
Position [165, 270, 195, 300]
Value "1"
VectorParams1D on
}
Block {
BlockType Reference
Name "FSK\nSpectrum"
Ports [1]
Position [510, 55, 545, 105]
LinkData {
BlockName "Optional\nBuffering/Buffer"
DialogParameters {
N "BufferSize"
V "Overlap"
ic "0"
}
}
SourceBlock "dspsnks3/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "64"
inpFftLenInherit on
FFTlength "512"
numAvg "8"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend on
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "Magnitude"
YMin "3.65159800006636e-011"
YMax "13.9640852655876"
YLabel "Magnitude"
LineProperties off
}
Block {
BlockType Product
Name "Product 1"
Ports [2, 1]
Position [200, 86, 245, 119]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product 2"
Ports [2, 1]
Position [350, 311, 395, 344]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [525, 166, 555, 199]
Floating off
Location [352, 269, 676, 508]
Open on
NumInputPorts "2"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5~-5"
YMax "5~5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [440, 165, 460, 185]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "fsk_out"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [210, 240, 230, 260]
ShowName off
IconShape "round"
Inputs "|-+"
SaturateOnIntegerOverflow on
}
Line {
Name "2200 Hz signal"
Labels [0, 0]
SrcBlock "Carrier wave2"
SrcPort 1
DstBlock "Product 2"
DstPort 2
}
Line {
Name "1200 Hz signal"
Labels [0, 0]
SrcBlock "Carrier wave"
SrcPort 1
DstBlock "Product 1"
DstPort 1
}
Line {
SrcBlock "Product 1"
SrcPort 1
Points [175, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product 2"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "fsk_out"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "FSK\nSpectrum"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [100, 0]
DstBlock "Product 2"
DstPort 1
}
Line {
SrcBlock "Bernoulli Random\nBinary Generator"
SrcPort 1
Points [35, 0]
Branch {
Points [45, 0]
Branch {
DstBlock "Product 1"
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "Sum1"
DstPort 1
}
}
Branch {
Points [0, 55; 360, 0; 0, -30]
DstBlock "Scope"
DstPort 2
}
}
Annotation {
Position [316, 23]
Text "FREQUENCY SHIFT KEYING (FSK) EXAMPLE"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -