📄 constant_gain_variable_q.mdl
字号:
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 [300, 233, 330, 247]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Mag"
Position [475, 63, 505, 77]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Phase"
Position [480, 123, 510, 137]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Transfer Function"
SrcPort 2
DstBlock "Phase"
DstPort 1
}
Line {
SrcBlock "Transfer Function"
SrcPort 1
DstBlock "Mag"
DstPort 1
}
Line {
SrcBlock "sampler1"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Transfer Function"
DstPort 2
}
Line {
SrcBlock "sampler"
SrcPort 1
Points [15, 0; 0, 10]
DstBlock "Transfer Function"
DstPort 1
}
Line {
SrcBlock "anti alias2"
SrcPort 1
DstBlock "Excitation"
DstPort 1
}
Line {
SrcBlock "Uniform Random\nNumber"
SrcPort 1
DstBlock "anti alias2"
DstPort 1
}
Line {
SrcBlock "Response"
SrcPort 1
DstBlock "anti alias1"
DstPort 1
}
Line {
SrcBlock "anti alias1"
SrcPort 1
DstBlock "sampler1"
DstPort 1
}
Line {
SrcBlock "Reference "
SrcPort 1
DstBlock "anti alias"
DstPort 1
}
Line {
SrcBlock "anti alias"
SrcPort 1
DstBlock "sampler"
DstPort 1
}
Annotation {
Name "Bandlimited Excitation"
Position [216, 199]
}
}
}
Block {
BlockType Reference
Name "C1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [315, 209, 350, 241]
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
Resistance "inf"
Inductance "inf"
Capacitance "0.01e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "C2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [420, 209, 455, 241]
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
Resistance "inf"
Inductance "inf"
Capacitance "0.01e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "C3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [364, 100, 396, 135]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
Resistance "inf"
Inductance "inf"
Capacitance "2*0.01e-6"
Measurements "None"
}
Block {
BlockType Reference
Name "CVS"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [212, 125, 248, 170]
Orientation "up"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "CVS1"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [525, 167, 570, 203]
Orientation "left"
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
SourceType "Controlled Voltage Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "G1"
Ports [0, 0, 0, 0, 0, 1]
Position [229, 220, 251, 245]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "G2"
Ports [0, 0, 0, 0, 0, 1]
Position [494, 240, 516, 265]
Orientation "down"
ShowName off
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Magnitude dB"
Ports [1]
Position [310, 285, 345, 335]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[15 321 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-100"
YMax "10"
YLabel "dB"
LineProperties off
LineColors "[1 0 0]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "R1 "
Ports [0, 0, 0, 0, 0, 1, 1]
Position [315, 72, 350, 98]
Orientation "left"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "1e4"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "R2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [415, 72, 450, 98]
Orientation "left"
NamePlacement "alternate"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "1e4"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "R3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [367, 175, 393, 210]
Orientation "up"
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "1e4/2"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "Slider\nGain"
Ports [1, 1]
Position [630, 160, 660, 190]
Orientation "left"
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
ShowPortLabels on
low "0.7"
gain "0.959"
high "1"
}
Block {
BlockType Sum
Name "Subtract"
Ports [2, 1]
Position [750, 167, 780, 198]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "output"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Terminator
Name "Terminator"
Position [240, 330, 260, 350]
}
Block {
BlockType Scope
Name "Time\nScope"
Ports [2]
Position [845, 86, 885, 144]
Location [44, 473, 461, 762]
Open on
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-2~-0.4"
YMax "2~0.4"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType SubSystem
Name "Vn 1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [530, 72, 555, 123]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelCloseFcn"
"','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB"
"locks','Measurement Block');"
CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn','')"
";"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Voltage Measurement"
MaskDescription "Ideal voltage measurement."
MaskHelp "web(psbhelp);"
MaskPromptString "Phasor simulation|Output signal :|Equivalent ci"
"rcuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-Angl"
"e|Magnitude),edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "off,off,off"
MaskVisibilityString "off,on,off"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequivalent"
"=@3;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelection "
"= 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelection ="
"[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\nca
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -