📄 ask.mdl
字号:
BlockType DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType DiscreteFilter
Numerator "[1]"
Denominator "[1 2]"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
Realization "auto"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
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
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
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 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 Reference
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
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 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 StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
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 "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ask"
Location [2, 74, 1014, 708]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [670, 322, 735, 378]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "30"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [60, 308, 140, 352]
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "50"
Ts "0.02"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [845, 45, 935, 75]
Decimation "1"
Lockdown off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [185, 322, 215, 353]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [565, 332, 595, 363]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Quantizing\nEncoder"
Ports [1, 2]
Position [810, 329, 900, 371]
SourceBlock "commsrccod2/Quantizing\nEncoder"
SourceType "Quantizing Encoder"
ShowPortLabels on
partition "[-.75 -.25 .25 .75]"
codebook "[-.825 -.5 0 .5 .825]"
}
Block {
BlockType Reference
Name "SSB AM\nDemodulator\nPassband"
Ports [1, 1]
Position [405, 317, 480, 363]
SourceBlock "commanapbnd2/SSB AM\nDemodulator\nPassband"
SourceType "SSB AM Demodulator Passband"
ShowPortLabels on
Fc "100"
num "[4.57 9.14 4.57]*.01"
den "[1 -1.3108 .4936]"
Ph "0"
ts "0.001"
}
Block {
BlockType Reference
Name "SSB AM\nModulator\nPassband"
Ports [1, 1]
Position [295, 316, 370, 364]
SourceBlock "commanapbnd2/SSB AM\nModulator\nPassband"
SourceType "SSB AM Modulator Passband"
ShowPortLabels on
Fc "100"
Ph "0"
ban "10"
dly "0.01"
ts "0.001"
sd "Upper"
}
Block {
BlockType Scope
Name "Scope"
Ports [7]
Position [940, 183, 1085, 367]
Floating off
Location [5, 34, 1033, 760]
Open off
NumInputPorts "7"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5~-5~-5~-5"
YMax "5~5~5~5~5~5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave0"
Ports [0, 1]
Position [95, 425, 125, 455]
SineType "Time based"
Frequency "20"
SampleTime "0.1"
}
Line {
SrcBlock "Sine Wave0"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 0; 0, -95]
DstBlock "Product"
DstPort 2
}
Branch {
Points [355, 0; 0, -85]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "SSB AM\nModulator\nPassband"
DstPort 1
}
Branch {
Points [0, -115]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "SSB AM\nModulator\nPassband"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "SSB AM\nDemodulator\nPassband"
DstPort 1
}
Branch {
Points [0, -90]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "SSB AM\nDemodulator\nPassband"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Scope"
DstPort 4
}
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Analog\nFilter Design"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "Scope"
DstPort 5
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Quantizing\nEncoder"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Scope"
DstPort 6
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -130]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Quantizing\nEncoder"
SrcPort 1
Points [20, 0]
DstBlock "Scope"
DstPort 7
}
Annotation {
Position [126, 515]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -