📄 vco_2.mdl
字号:
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [600, 90, 635, 140]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "256"
Overlap "64"
inpFftLenInherit off
FFTlength "128"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[626 37 392 254]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-110"
YMax "0"
YLabel "Magnitude, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "anti alias"
Ports [1, 1]
Position [250, 32, 315, 88]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "9"
Wlo "BW*pi"
Whi "80"
Rp "1.2"
Rs "100"
}
Block {
BlockType Reference
Name "anti alias1"
Ports [1, 1]
Position [250, 142, 315, 198]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "9"
Wlo "BW*pi"
Whi "80"
Rp "1.2"
Rs "100"
}
Block {
BlockType Product
Name "down convert"
Ports [2, 1]
Position [150, 41, 195, 74]
RndMeth "Floor"
}
Block {
BlockType Product
Name "down convert1"
Ports [2, 1]
Position [145, 151, 190, 184]
RndMeth "Floor"
}
Block {
BlockType ZeroOrderHold
Name "sampler (imag)"
Position [375, 151, 410, 189]
SampleTime "1/(1.28*BW)"
}
Block {
BlockType ZeroOrderHold
Name "sampler (real)"
Position [380, 41, 415, 79]
SampleTime "1/(1.28*BW)"
}
Line {
SrcBlock "Input Signal"
SrcPort 1
Points [45, 0]
Branch {
Points [0, -45]
DstBlock "down convert"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "down convert1"
DstPort 1
}
}
Line {
SrcBlock "down convert"
SrcPort 1
DstBlock "anti alias"
DstPort 1
}
Line {
SrcBlock "anti alias"
SrcPort 1
DstBlock "sampler (real)"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "down convert"
DstPort 1
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "down convert1"
DstPort 2
}
Line {
SrcBlock "anti alias1"
SrcPort 1
DstBlock "sampler (imag)"
DstPort 1
}
Line {
SrcBlock "down convert1"
SrcPort 1
DstBlock "anti alias1"
DstPort 1
}
Line {
SrcBlock "sampler (real)"
SrcPort 1
Points [45, 0; 0, 45]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
Line {
SrcBlock "sampler (imag)"
SrcPort 1
Points [50, 0; 0, -50]
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
DstBlock "Spectrum\nScope"
DstPort 1
}
Annotation {
Name "cosine"
Position [47, 76]
}
Annotation {
Name "sine"
Position [46, 203]
}
}
}
Block {
BlockType Saturate
Name "Saturation"
Position [280, 125, 310, 155]
UpperLimit "0.1"
LowerLimit "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [965, 75, 985, 95]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [775, 75, 795, 95]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Display
Name "Transconductance (Mhos)"
Ports [1]
Position [75, 125, 165, 155]
Orientation "left"
}
Block {
BlockType Scope
Name "VCO Output Scope"
Ports [1]
Position [630, 254, 660, 286]
Location [11, 492, 335, 731]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "2.5e-007"
YMin "0.12"
YMax "0.28"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Reference
Name "VM2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [495, 73, 520, 97]
AttributesFormatString "\\n"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Varactor \n(voltage variable capacitor)"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [90, 262, 215, 313]
SourceBlock "simpower_extensions_1/Varactor \n(voltage varia"
"ble capacitor)"
SourceType ""
ShowPortLabels on
Cjo "100e-12"
Vj "0.7"
M "0.5"
Cp "5e-12"
}
Block {
BlockType SubSystem
Name "Variable Gm \nDevice"
Ports [1, 0, 0, 0, 0, 1, 2]
Position [350, 118, 425, 207]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Variable Gm \nDevice"
Location [17, 178, 710, 635]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Gm Control"
Position [50, 148, 80, 162]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Gm*Vsense"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [465, 94, 510, 141]
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
SourceType "Controlled Current Source"
ShowPortLabels on
Initialize off
SourceType "AC"
Amplitude "-0.025"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Product
Name "Product of Gm \nand \nVsense"
Ports [2, 1]
Position [355, 86, 400, 119]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType SubSystem
Name "Vsense"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [225, 74, 265, 116]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measureme"
"nt Block','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelClos"
"eFcn','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOf"
"SPSBlocks','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 :|Equivalen"
"t circuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-"
"Angle|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;PSBequiva"
"lent=@3;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelect"
"ion = 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelecti"
"on =[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputS"
"election =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n O"
"utputSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Ph"
"asorSimulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = No"
"rmalMode;\nend\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "off|Magnitude|0"
MaskTabNameString ",,"
System {
Name "Vsense"
Location [206, 474, 665, 687]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [275, 121, 280, 179]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Phasor Measurements"
Ports [1, 1, 1]
Position [145, 123, 250, 147]
BackgroundColor "green"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Phasor Measurements"
Location [255, 525, 861, 796]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "measure"
Position [70, 28, 100, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [20, 15, 40, 35]
}
Block {
BlockType Gain
Name "180/pi"
Position [225, 105, 245, 125]
Gain "180/pi"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [140, 85, 195, 125]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [140, 45, 195, 85]
ShowName off
Output "Real and imag"
}
Block {
BlockType Mux
Name "Mux2"
Ports [5, 1]
Position [275, 23, 280, 127]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [315, 51, 350, 99]
Elements "OutputSelection"
InputPortWidth "5"
}
Block {
BlockType Outport
Name "options"
Position [380, 68, 410, 82]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "measure"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, 30]
Branch {
Points [0, 40]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -