📄 sparam_1.mdl
字号:
firstCoeffFracLength "15"
outputMode "Same as input"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Filter1"
Ports [1, 1]
Position [450, 33, 520, 77]
ShowName off
SourceBlock "dsparch3/Direct-Form II\nTranspose Filt"
"er"
SourceType "Direct-Form II Transpose Filter"
num "1"
den "[Navg -(Navg-1)]"
ic "eps"
}
Block {
BlockType Reference
Name "Filter2"
Ports [1, 1]
Position [450, 108, 520, 152]
ShowName off
SourceBlock "dsparch3/Direct-Form II\nTranspose Filt"
"er"
SourceType "Direct-Form II Transpose Filter"
num "1"
den "[Navg -(Navg-1)]"
ic "eps"
}
Block {
BlockType FrameConversion
Name "Frame Conversion1"
Position [865, 45, 920, 85]
ShowName off
OutFrame "Frame based"
}
Block {
BlockType FrameConversion
Name "Frame Conversion3"
Position [865, 105, 920, 145]
OutFrame "Frame based"
}
Block {
BlockType Gain
Name "Gain"
Position [960, 110, 990, 140]
Gain "180/pi"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Magnitude\nSquared"
Ports [1, 1]
Position [385, 40, 415, 70]
ShowName off
Operator "magnitude^2"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [330, 75, 360, 105]
Orientation "down"
NamePlacement "alternate"
ShowName off
Operator "conj"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [945, 50, 975, 80]
ShowName off
Operator "magnitude^2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [375, 111, 420, 144]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [565, 49, 590, 76]
ShowName off
Inputs "/*"
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Window\nFunction"
Ports [1, 1]
Position [150, 27, 230, 83]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
SourceBlock "dspsigops/Window\nFunction"
SourceType "Window Function"
winmode "Apply window to input"
wintype "Hann"
sampmode "Continuous"
samptime "1"
N "64"
Rs "50"
beta "10"
winsamp "Periodic"
UserWindow "hamming"
OptParams off
UserParams "{'symmetric'}"
additionalParams off
allowOverrides on
dataType "double"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "16"
prodOutputFracLength "15"
outputMode "Same as product output"
outputWordLength "16"
outputFracLength "15"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Window\nFunction1"
Ports [1, 1]
Position [150, 107, 230, 163]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag3"
SourceBlock "dspsigops/Window\nFunction"
SourceType "Window Function"
winmode "Apply window to input"
wintype "Hann"
sampmode "Continuous"
samptime "1"
N "64"
Rs "50"
beta "10"
winsamp "Periodic"
UserWindow "hamming"
OptParams off
UserParams "{'symmetric'}"
additionalParams off
allowOverrides on
dataType "double"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "16"
prodOutputFracLength "15"
outputMode "Same as product output"
outputWordLength "16"
outputFracLength "15"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Outport
Name "TF"
Position [1020, 58, 1050, 72]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Angle"
Position [1020, 118, 1050, 132]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Downsample"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 60]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
DstBlock "Frame Conversion1"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
DstBlock "Embedded\nMATLAB Function"
DstPort 1
}
Line {
SrcBlock "Frame Conversion3"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function"
SrcPort 1
DstBlock "Frame Conversion3"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Angle"
DstPort 1
}
Line {
SrcBlock "Frame Conversion1"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "OUT"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "IN"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Filter2"
DstPort 1
}
Line {
SrcBlock "FFT1"
SrcPort 1
Points [0, 0]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [0, 10]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Magnitude\nSquared"
SrcPort 1
DstBlock "Filter1"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Math\nFunction"
DstPort 1
}
Branch {
DstBlock "Magnitude\nSquared"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "TF"
DstPort 1
}
Line {
SrcBlock "Window\nFunction"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Window\nFunction1"
SrcPort 1
DstBlock "FFT1"
DstPort 1
}
Line {
SrcBlock "Filter1"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Filter2"
SrcPort 1
Points [10, 0; 0, -60]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Buffer"
SrcPort 1
Points [0, 0]
DstBlock "Window\nFunction"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
Points [0, 0]
DstBlock "Window\nFunction1"
DstPort 1
}
}
}
Block {
BlockType UniformRandomNumber
Name "Uniform Random\nNumber"
Position [600, 84, 630, 116]
SampleTime "1/(2.56*BW)"
}
Block {
BlockType StateSpace
Name "anti alias"
Position [115, 32, 180, 88]
AncestorBlock "dsparch3/Analog\nFilter Design"
A "a"
B "b"
C "c"
D "d"
MaskType "Analog Filter Design"
MaskDescription "Design one of several standard analog filte"
"rs, implemented in state-space form."
MaskHelp "web(dspbhelp);"
MaskPromptString "Design method:|Filter type:|Filter order:|P"
"assband edge frequency (rads/sec):|(unused)|Passband ripple in dB:|Stopband a"
"ttenuation in dB:"
MaskStyleString "popup(Butterworth|Chebyshev I|Chebyshev II|"
"Elliptic|Bessel),popup(Lowpass|Highpass|Bandpass|Bandstop),edit,edit,edit,edi"
"t,edit"
MaskTunableValueString "on,on,off,on,on,on,on"
MaskCallbackString "dspblkanalog|dspblkanalog|||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,off,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "method=&1;filttype=&2;N=@3;Wlo=@4;Whi=@5;Rp"
"=@6;Rs=@7;"
MaskInitialization "[a,b,c,d,h,w,str]=dspblkanalog('design', me"
"thod,filttype,N,Wlo,Whi,Rp,Rs);\n"
MaskDisplay "plot(w,h); text(.05,.9,str);\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "Elliptic|Lowpass|8|BW*2*pi|80|2|100"
MaskTabNameString ",,,,,,"
}
Block {
BlockType StateSpace
Name "anti alias1"
Position [120, 117, 185, 173]
AncestorBlock "dsparch3/Analog\nFilter Design"
A "a"
B "b"
C "c"
D "d"
MaskType "Analog Filter Design"
MaskDescription "Design one of several standard analog filte"
"rs, implemented in state-space form."
MaskHelp "web(dspbhelp);"
MaskPromptString "Design method:|Filter type:|Filter order:|P"
"assband edge frequency (rads/sec):|(unused)|Passband ripple in dB:|Stopband a"
"ttenuation in dB:"
MaskStyleString "popup(Butterworth|Chebyshev I|Chebyshev II|"
"Elliptic|Bessel),popup(Lowpass|Highpass|Bandpass|Bandstop),edit,edit,edit,edi"
"t,edit"
MaskTunableValueString "on,on,off,on,on,on,on"
MaskCallbackString "dspblkanalog|dspblkanalog|||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,off,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "method=&1;filttype=&2;N=@3;Wlo=@4;Whi=@5;Rp"
"=@6;Rs=@7;"
MaskInitialization "[a,b,c,d,h,w,str]=dspblkanalog('design', me"
"thod,filttype,N,Wlo,Whi,Rp,Rs);\n"
MaskDisplay "plot(w,h); text(.05,.9,str);\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "Elliptic|Lowpass|8|BW*2*pi|80|2|100"
MaskTabNameString ",,,,,,"
}
Block {
BlockType StateSpace
Name "anti alias2"
Position [685, 72, 750, 128]
AncestorBlock "dsparch3/Analog\nFilter Design"
A "a"
B "b"
C "c"
D "d"
MaskType "Analog Filter Design"
MaskDescription "Design one of several standard analog filte"
"rs, implemented in state-space form."
MaskHelp "web(dspbhelp);"
MaskPromptString "Design method:|Filter type:|Filter order:|P"
"assband edge frequency (rads/sec):|(unused)|Passband ripple in dB:|Stopband a"
"ttenuation in dB:"
MaskStyleString "popup(Butterworth|Chebyshev I|Chebyshev II|"
"Elliptic|Bessel),popup(Lowpass|Highpass|Bandpass|Bandstop),edit,edit,edit,edi"
"t,edit"
MaskTunableValueString "on,on,off,on,on,on,on"
MaskCallbackString "dspblkanalog|dspblkanalog|||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,off,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "method=&1;filttype=&2;N=@3;Wlo=@4;Whi=@5;Rp"
"=@6;Rs=@7;"
MaskInitialization "[a,b,c,d,h,w,str]=dspblkanalog('design', me"
"thod,filttype,N,Wlo,Whi,Rp,Rs);\n"
MaskDisplay "plot(w,h); text(.05,.9,str);\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "Elliptic|Lowpass|8|BW*2*pi|80|2|100"
MaskTabNameString ",,,,,,"
}
Block {
BlockType ZeroOrderHold
Name "sampler"
Position [215, 41, 250, 79]
SampleTime "1/(2.56*BW)"
}
Block {
BlockType ZeroOrderHold
Name "sampler1"
Position [215, 126, 250, 164]
SampleTime "1/(2.56*BW)"
}
Block {
BlockType Outport
Name "Excitation"
Position [805, 93, 835, 107]
IconDisplay "Port number"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -