📄 ssb.mdl
字号:
Cell "IncludeMdlTerminateFcn"
Cell "CombineOutputUpdateFcns"
Cell "SuppressErrorStatus"
Cell "ERTCustomFileBanners"
Cell "GenerateSampleERTMain"
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.0.4"
TargetFcnLib "ansi_tfl_tmw.mat"
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus 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 "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Port "1"
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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
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 "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
}
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 "ssb"
Location [434, 82, 934, 383]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Buffered FFT\nFrame Scope"
Ports [1]
Position [425, 185, 460, 235]
SourceBlock "dspsnks2/Buffered FFT\nFrame Scope"
SourceType "Buffered FFT Frame Scope"
ShowPortLabels on
FFTlength "128"
BufferSize "128"
Overlap "64"
Domain "Frequency"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs]"
XIncr "1/20000"
YLabel "Magnitude, dB"
YUnits "Magnitude"
HorizSpan "1"
NChans "1"
AxisParams on
YMin "0"
YMax "1000"
FigPos "get(0,'defaultfigureposition')"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend on
Memory off
LineParams off
}
Block {
BlockType Reference
Name "Digital FIR\nFilter Design"
Ports [1, 1]
Position [315, 182, 385, 238]
SourceBlock "dspddes2/Digital FIR\nFilter Design"
SourceType "Digital FIR Filter Design"
ShowPortLabels on
filttype "Lowpass"
N "22"
Wlo "0.4"
Whi "0.6"
W0 "[.2 .5 .8]"
g0 "1"
W1 "[0 .2 .3 .6 .8 1]"
gains "[1 .5 0 0 1 .5]"
wintype "Hamming"
Rs "10"
Kbeta "5"
frame off
numChans "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [210, 198, 240, 222]
ShowName off
Port {
PortNumber 1
Name "Modulated\nInput"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [235, 104, 265, 136]
DropShadow on
Location [1, 52, 1441, 899]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.02"
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
SampleInput on
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [60, 105, 90, 135]
DropShadow on
SineType "Time based"
Frequency "2000*(2*pi)"
SampleTime "1/20000"
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [40, 205, 70, 235]
SineType "Time based"
Frequency "5000*2*3.14"
SampleTime "1/20000"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [55, 0]
Branch {
Points [0, 85]
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [25, 0; 0, -5]
DstBlock "Product"
DstPort 2
}
Line {
Name "Modulated\nInput"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
DstBlock "Digital FIR\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Digital FIR\nFilter Design"
SrcPort 1
DstBlock "Buffered FFT\nFrame Scope"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -