📄 twotone.mdl
字号:
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 Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
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"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
}
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 "twotone"
Location [259, 321, 776, 607]
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 [450, 145, 485, 195]
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 Constant
Name "Constant"
Position [130, 205, 160, 235]
}
Block {
BlockType Gain
Name "Km"
Position [295, 150, 325, 180]
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [360, 158, 390, 182]
ShowName off
Port {
PortNumber 1
Name "Modulated\nInput"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [250, 69, 280, 101]
DropShadow on
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
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 [15, 55, 45, 85]
DropShadow on
Frequency "1000*(2*pi)"
SampleTime "1/20000"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [20, 180, 50, 210]
DropShadow on
SineType "Time based"
Frequency "2000*(2*pi)"
SampleTime "1/20000"
}
Block {
BlockType Sin
Name "Sine Wave2"
Ports [0, 1]
Position [310, 200, 340, 230]
Frequency "10000*2*3.14"
SampleTime "1/20000"
}
Block {
BlockType Sum
Name "Up"
Ports [2, 1]
Position [195, 155, 215, 175]
IconShape "round"
Port {
PortNumber 1
Name "Upper\nSideband"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Up1"
Ports [2, 1]
Position [70, 130, 90, 150]
IconShape "round"
Port {
PortNumber 1
Name "Upper\nSideband"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Gain
Name "a"
Position [125, 125, 155, 155]
Gain "0.5"
}
Line {
Name "Upper\nSideband"
Labels [0, 0]
SrcBlock "Up"
SrcPort 1
DstBlock "Km"
DstPort 1
}
Line {
SrcBlock "Km"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0]
DstBlock "Up"
DstPort 2
}
Line {
Name "Modulated\nInput"
Labels [0, 0]
SrcBlock "Product1"
SrcPort 1
DstBlock "Buffered FFT\nFrame Scope"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "a"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Up"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [30, 0]
DstBlock "Up1"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [25, 0]
DstBlock "Up1"
DstPort 2
}
Line {
Name "Upper\nSideband"
Labels [0, 0]
SrcBlock "Up1"
SrcPort 1
DstBlock "a"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -