(saveFormat "7.0") (date "Thu 16/May/2013 19:37:32 ") (veerev "9.3.15222.1") (platform "PC") (execMode v6) (prefExecMode v6) (filterNAN 0) (workspaceStackingOrder M) (sysconfig (iodevice "scope" (type USB) (channel 170) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idn "agdso-x 3012a") (isPresent 1) (ppAddr "USB0::0x0957::0x17A9::MY53160107::INSTR") (ScpiFileName "agdso-x 3012a.xml") (model "agdso-x 3012a") (eoiEnabled 1) (VISAlias "scope") (VISAddr "USB0::0x0957::0x17A9::MY53160107::INSTR") (model "agdso-x 3012a" (standard 488))) (iodevice "funcgen" (type USB) (channel 170) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idn "ag33522a") (isPresent 1) (ppAddr "USB0::0x0957::0x2307::MY50004474::INSTR") (ivicomFile "Ag3352x") (ivicomAddr "USB0::0x0957::0x2307::MY50004474::INSTR") (ScpiFileName "ag33522a.xml") (model "ag33522a") (eoiEnabled 1) (VISAlias "funcgen") (VISAddr "USB0::0x0957::0x2307::MY50004474::INSTR") (model "ag33522a" (standard 488))) (iodevice "dmm" (type GPIB-VISA) (channel 131) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idn "hp34401a") (isPresent 1) (ppFile "HP34401") (ppAddr "GPIB1::22::INSTR") (ivicomFile "Ag34401") (ivicomAddr "GPIB1::22::INSTR") (ScpiFileName "hp34401a.xml") (model "hp34401a") (eoiEnabled 1) (VISAlias "dmm") (VISAddr "GPIB1::22::INSTR") (model "hp34401a" (standard 488)))) (SaveCF no) (device 0 ROOTCONTEXT (properties (variableName Main) (variableScope glob) (trigMode deg) (nextID 52) (popupTitleText "Untitled") (popupMoveable 1) (deleteGlobals 0)) (deviceList (device 0 CONSTANT (properties (name "Vin") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real (data 1)) (initValue Real (data 0)))) (device 1 CONSTANT (properties (name "Start") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real (data 100)) (initValue Real (data 0)))) (device 2 CONSTANT (properties (name "Stop") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real (data 5000)) (initValue Real (data 0)))) (device 3 CONSTANT (properties (name "Pts/Dec") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real (data 30)) (initValue Real (data 0)))) (device 6 FORLOGRANGE (properties (variableScope cont) (from 100) (thru 5000) (perDecade 30)) (interface (input 1 (name "From") (tag "From") (requires (datatype Real64) (shape "Scalar")) (lock constraints) (optional yes) (buffer YES)) (input 2 (name "Thru") (tag "Thru") (requires (datatype Real64) (shape "Scalar")) (lock constraints) (optional yes) (buffer YES)) (input 3 (name "/Dec") (tag "/Dec") (requires (datatype Real64) (shape "Scalar")) (lock constraints) (optional yes) (buffer YES)) (output 1 (name "Data") (lock name constraints)))) (device 7 FORMULA (properties (variableScope cont) (expr 1 "20*log10(B/A)")) (interface (input 1 (name "A") (optional yes)) (input 2 (name "B") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 8 CONSTANT (properties (name "Lower") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Int32") (lock name constraints))) (implementation (value Int32 (data -90)) (initValue Int32 (data 0)))) (device 9 CONSTANT (properties (name "Upper") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Int32") (lock name constraints))) (implementation (value Int32 (data 90)) (initValue Int32 (data 0)))) (device 10 FORMULA (properties (name "ClipLower(x,a)") (variableScope cont) (expr 1 "ClipLower(x,a)")) (interface (input 1 (name "x") (optional yes)) (input 2 (name "a") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 11 FORMULA (properties (name "clipUpper(x,a)") (variableScope cont) (expr 1 "clipUpper(x,a)")) (interface (input 1 (name "x") (optional yes)) (input 2 (name "a") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 13 XYPLOT (properties (name "Phase vs Freq") (variableScope cont)) (interface (input 1 (name "XData") (lock constraints)) (input 2 (name "") (lock constraints)) (input 3 (type control) (name "Auto Scale") (lock name constraints) (optional yes))) (implementation (tracePin 2) (graphMode rectangular) (autoAutoX) (autoAutoY))) (device 14 XYPLOT (properties (name "Gain vs Freq") (variableScope cont)) (interface (input 1 (name "XData") (lock constraints)) (input 2 (name "") (lock constraints)) (input 3 (type control) (name "Auto Scale") (lock name constraints) (optional yes))) (implementation (tracePin 2) (graphMode rectangular) (autoAutoX) (autoAutoY))) (device 17 NOTE (properties (name "Instructions") (variableScope cont) (text2 1 "{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang1033{\\fonttbl{\\f0\\froman\\fprq2\\fcharset0 Times New Roman;}}\r\n{\\colortbl ;\\red0\\green0\\blue128;}\r\n\\viewkind4\\uc1\\pard\\cf1\\b\\f0\\fs28 This program uses the Agilent 33522A funcgen and Agilent 3012A scope to measure the gain and phase shift of a circuit as a function of frequency. Connect the funcgen to the input of the circuit and Ch1 of the scope to the input of the circuit. Connect Ch2 of the scope to the output. \\par\r\n}\r\n" ))) (device 22 IODEVICE (properties (name "scope (agdso-x 3012a @scope)") (variableScope cont) (transactions 10 "WAIT INTERVAL:1.5" "WRITE TEXT \"AUTOSCALE\" EOL" "WAIT INTERVAL:1" "WRITE TEXT \"measure:VRMS? Channel1\" EOL" "READ TEXT V_in REAL64" "WRITE TEXT \"measure:VRMS? Channel2\" EOL" "READ TEXT V_out REAL64" "WAIT INTERVAL:1" "WRITE TEXT \"MEASURE:PHASE? Channel2,Channel1\" EOL" "READ TEXT Phase REAL64")) (interface (output 1 (name "V_in") (optional yes)) (output 2 (name "V_out") (optional yes)) (output 3 (name "Phase") (optional yes))) (implementation (ioDevType 17) (visaAlias "scope") (iopath "scope"))) (device 25 IODEVICE (properties (name "FuncGen (ag33522a @FuncGen)") (variableScope cont) (transactions 9 "WRITE TEXT \"output1:stat on\" EOL" "WRITE TEXT \"output2:stat off\" EOL" "WRITE TEXT \"output1:load MAX\" EOL" "WRITE TEXT \"sour1:func:shap sin\" EOL" "WRITE TEXT \"sour1:freq 1e3\" EOL" "WRITE TEXT \"SOURce1:VOLTage:LEVel:IMMediate:OFFSet 0V\" EOL" "WRITE TEXT \"sour1:volt:unit vrms\" EOL" "WRITE TEXT \"SOURce1:VOLTage:LEVel:IMMediate:AMPLitude \", V_in, \" vrms\" EOL" "WRITE TEXT \"freq \", fstart, \" hz\" EOL")) (interface (input 1 (name "V_in") (optional yes)) (input 2 (name "fstart") (optional yes))) (implementation (ioDevType 17) (visaAlias "funcgen") (iopath "FuncGen"))) (device 26 IODEVICE (properties (name "FuncGen (ag33522a @FuncGen)") (variableScope cont) (transactions 1 "WRITE TEXT \"freq \", f, \" hz\" EOL")) (interface (input 1 (name "f") (optional yes))) (implementation (ioDevType 17) (visaAlias "funcgen") (iopath "FuncGen"))) (device 37 IFTHENELSE (properties (name "If A > B") (variableScope cont) (cases 1 "(A>B)*C")) (interface (input 1 (name "A") (optional yes)) (input 2 (name "B") (optional yes)) (input 3 (name "C") (optional yes)) (output 1 (name "Then") (lock name constraints)) (output 2 (name "Else") (lock name constraints)))) (device 38 CONSTANT (properties (name "Phase Noise") (variableScope cont) (enableEditing 1)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real (data 0.05)) (initValue Real (data 0)))) (device 39 TEXTDISPLAY (properties (name "Frequency") (variableScope cont)) (interface (input 1 (name "Data")))) (device 20 IODEVICE (properties (name "scope (agdso-x 3012a @scope)") (variableScope cont) (transactions 6 "WRITE TEXT \"channel1:Display 1\" EOL" "WRITE TEXT \"channel2:Display 2\" EOL" "WRITE TEXT \"channel1:impedance OneMEG\" EOL" "WRITE TEXT \"channel2:impedance OneMEG\" EOL" "WRITE TEXT \"channel1:coupling AC\" EOL" "WRITE TEXT \"channel2:coupling AC\" EOL")) (implementation (ioDevType 17) (visaAlias "scope") (iopath "scope"))) (device 51 PICTURE (properties (variableScope cont) (pictureImage "C:\\Users\\Tom\\AppData\\Local\\Microsoft\\Windows\\Temporary Internet Files\\Content.IE5\\JKEV7L6P\\brewer[2].jpg" ))) (configuration (connect D1:1 D4:1) (connect D2:1 D4:2) (connect D3:1 D4:3) (connect D13:1 D5:1) (connect D13:2 D5:2) (connect D13:3 D8:1) (connect D6:1 D8:2) (connect D8:1 D9:1) (connect D7:1 D9:2) (connect D4:1 D10:1) (connect D16:1 D10:2) (connect D4:0 D10:3) (connect D4:1 D11:1) (connect D5:1 D11:2) (connect D4:0 D11:3) (connect D15:0 D13:0) (connect D0:1 D14:1) (connect D1:1 D14:2) (connect D19:0 D15:0) (connect D4:1 D15:1) (connect D13:2 D16:1) (connect D17:1 D16:2) (connect D9:1 D16:3) (connect D4:1 D18:1) (connect D14:0 D19:0))) (contextCarrier (wndRestoredOrigin 2 2) (wndRestoredExtent 792 395) (wndState max) (active detail) (detail (extent 1676 840) (anchorPt 116 210) (configuration (devCarrierFor 0 (active open) (icon (extent 21 0)) (open (extent 80 29) (showFormat real)) (pinCenter 80 70)) (devCarrierFor 1 (active open) (icon (extent 29 0)) (open (extent 80 29) (showFormat real)) (pinCenter 80 150)) (devCarrierFor 2 (active open) (icon (extent 29 0)) (open (extent 80 29) (showFormat real)) (pinCenter 80 220)) (devCarrierFor 3 (active open) (icon (extent 47 0)) (open (extent 83 29) (showFormat real)) (pinCenter 80 300)) (devCarrierFor 6 (active icon) (icon (extent 90 51) (iconImage "loop.icn")) (open (extent 126 79)) (pinCenter 220 220)) (devCarrierFor 7 (active icon) (icon (extent 50 25)) (open (extent 104 56)) (terminals on) (pinCenter 390 380)) (devCarrierFor 8 (active open) (icon (extent 38 15)) (open (extent 74 29) (showFormat int)) (pinCenter 70 500)) (devCarrierFor 9 (active icon) (icon (extent 38 15)) (open (extent 74 29) (showFormat int)) (pinCenter 190 560)) (devCarrierFor 10 (active icon) (icon (extent 86 25)) (open (extent 110 50)) (terminals on) (pinCenter 180 490)) (devCarrierFor 11 (active icon) (icon (extent 83 25)) (open (extent 114 50)) (terminals on) (pinCenter 290 510)) (devCarrierFor 13 (active open) (icon (extent 86 0) (iconImage "display.icn")) (open (extent 318 279) (displayMode 47) (graphType cartesian) (gridType grid) (scale 0 (name "Deg") (domainName "Freq") (Yspacing 1) (Xspacing 2) (scaleColor "Dark Gray") (show 1) (range -1.02 -0.86 4 linear)) (domain 100 116.5914401179831 4 log) (trace 0 onScale 0 (name "") (traceColor "Yellow") (lineType 12) (pointType 0))) (pinCenter 970 500)) (devCarrierFor 14 (active open) (icon (extent 75 0) (iconImage "display.icn")) (open (extent 318 279) (displayMode 47) (graphType cartesian) (gridType grid) (scale 0 (name "Gain (dB)") (domainName "Freq") (Yspacing 1) (Xspacing 2) (scaleColor "Dark Gray") (show 1) (range 0.08600000000000001 0.089 4 linear)) (domain 100 116.5914401179831 4 log) (trace 0 onScale 0 (name "") (traceColor "Yellow") (lineType 12) (pointType 0))) (pinCenter 970 160)) (devCarrierFor 17 (active open) (icon (extent 70 51) (iconImage "notepad.icn")) (open (extent 524 146) (editing enabled)) (pinCenter 1020 -90)) (devCarrierFor 22 (active icon) (icon (extent 193 51) (iconImage "io.icn")) (open (extent 434 306)) (terminals on) (pinCenter 520 290)) (devCarrierFor 25 (active icon) (icon (extent 200 51) (iconImage "io.icn")) (open (extent 444 276)) (terminals on) (pinCenter 530 0)) (devCarrierFor 26 (active icon) (icon (extent 200 51) (iconImage "io.icn")) (open (extent 227 74)) (terminals on) (pinCenter 410 190)) (devCarrierFor 37 (active icon) (icon (extent 39 34)) (open (extent 84 76)) (terminals on) (pinCenter 480 490)) (devCarrierFor 38 (active icon) (icon (extent 79 15)) (open (extent 115 29) (showFormat real)) (pinCenter 310 450)) (devCarrierFor 39 (active open) (icon (extent 62 0)) (open (extent 121 22)) (pinCenter 220 360)) (devCarrierFor 20 (active icon) (icon (extent 193 51) (iconImage "io.icn")) (open (extent 464 396)) (terminals on) (pinCenter 530 90)) (devCarrierFor 51 (active open) (icon) (open (extent 212 200) (pictureMode actual)) (pinCenter 670 460)) (connect D1:1 D4:1 (points 4 122 150 140 150 140 210 172 210)) (connect D2:1 D4:2 (points 2 122 220 172 220)) (connect D3:1 D4:3 (points 4 124 300 140 300 140 230 172 230)) (connect D13:1 D5:1 (points 6 619 280 650 280 650 340 350 340 350 370 362 370)) (connect D13:2 D5:2 (points 10 619 290 630 290 630 300 640 300 640 430 380 430 380 420 340 420 340 390 362 390)) (connect D13:3 D8:1 (points 12 619 300 630 300 630 400 430 400 430 440 370 440 370 430 330 430 330 420 120 420 120 480 134 480)) (connect D6:1 D8:2 (points 2 109 500 134 500)) (connect D8:1 D9:1 (points 4 225 490 240 490 240 500 246 500)) (connect D7:1 D9:2 (points 4 211 560 230 560 230 520 246 520)) (connect D4:1 D10:1 (points 10 267 220 290 220 290 240 280 240 280 310 310 310 310 350 440 350 440 410 808 410)) (connect D16:1 D10:2 (points 4 502 480 520 480 520 500 808 500)) (connect D4:0 D10:3 (points 11 220 248 220 260 230 260 230 280 290 280 290 410 390 410 390 420 530 420 530 590 808 590)) (connect D4:1 D11:1 (points 8 267 220 290 220 290 190 280 190 280 40 700 40 700 70 808 70)) (connect D5:1 D11:2 (points 6 417 380 430 380 430 290 740 290 740 160 808 160)) (connect D4:0 D11:3 (points 9 220 248 220 260 230 260 230 280 400 280 400 260 660 260 660 250 808 250)) (connect D15:0 D13:0 (points 4 410 218 410 240 520 240 520 262)) (connect D0:1 D14:1 (points 4 122 70 140 70 140 -10 427 -10)) (connect D1:1 D14:2 (points 4 122 150 150 150 150 10 427 10)) (connect D19:0 D15:0 (points 4 530 118 530 140 410 140 410 162)) (connect D4:1 D15:1 (points 4 267 220 290 220 290 190 307 190)) (connect D13:2 D16:1 (points 8 619 290 630 290 630 300 640 300 640 430 440 430 440 480 458 480)) (connect D17:1 D16:2 (points 4 352 450 370 450 370 490 458 490)) (connect D9:1 D16:3 (points 4 334 510 350 510 350 500 458 500)) (connect D4:1 D18:1 (points 8 267 220 290 220 290 240 280 240 280 310 140 310 140 360 157 360)) (connect D14:0 D19:0 (points 2 530 28 530 62))) (stackingOrder 0 2 3 1 4 5 9 18 16 6 7 8 17 11 10 12 19 15 13 14 20)) (numberFormats (realFormat standard) (realSigDigits 4) (realRadixSpec 4) (integerBase decimal))))