📄 sparam_2.mdl
字号:
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"
BusOutputAsStruct off
}
Line {
SrcBlock "sampler"
SrcPort 1
Points [40, 0; 0, 25]
DstBlock "Transfer Function"
DstPort 1
}
Line {
SrcBlock "anti alias"
SrcPort 1
DstBlock "sampler"
DstPort 1
}
Line {
SrcBlock "Reference "
SrcPort 1
DstBlock "anti alias"
DstPort 1
}
Line {
SrcBlock "sampler1"
SrcPort 1
Points [40, 0; 0, -30]
DstBlock "Transfer Function"
DstPort 2
}
Line {
SrcBlock "anti alias1"
SrcPort 1
DstBlock "sampler1"
DstPort 1
}
Line {
SrcBlock "Response"
SrcPort 1
DstBlock "anti alias1"
DstPort 1
}
Line {
SrcBlock "Uniform Random\nNumber"
SrcPort 1
DstBlock "anti alias2"
DstPort 1
}
Line {
SrcBlock "anti alias2"
SrcPort 1
DstBlock "Excitation"
DstPort 1
}
Line {
SrcBlock "Transfer Function"
SrcPort 1
DstBlock "Magnitude in dB"
DstPort 1
}
Line {
SrcBlock "Transfer Function"
SrcPort 2
Points [35, 0; 0, 45]
DstBlock "Phase in Degrees"
DstPort 1
}
}
}
Block {
BlockType Ground
Name "Ground"
Position [1025, 305, 1045, 325]
Orientation "left"
Port {
PortNumber 1
Name "a2"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [690, 145, 710, 165]
BackgroundColor "cyan"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [520, 305, 540, 325]
Orientation "left"
BackgroundColor "cyan"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "++|"
Port {
PortNumber 1
Name "\n"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [235, 305, 255, 325]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "++|"
Port {
PortNumber 1
Name "b1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [395, 145, 415, 165]
BackgroundColor "green"
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [830, 305, 850, 325]
Orientation "left"
BackgroundColor "orange"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "++|"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [990, 145, 1010, 165]
BackgroundColor "orange"
ShowName off
IconShape "round"
Inputs "|++"
Port {
PortNumber 1
Name "b2"
RTWStorageClass "Auto"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -