(saveFormat "7.0")
(date "Mon 14/Jun/2010 18:45:05 ")
(veerev "9.0.11705.0")
(platform "PC")
(execMode v6)
(prefExecMode v6)
(filterNAN 0)
(workspaceStackingOrder M)
(sysconfig
(iodevice "Scope"
(type GPIB-VISA)
(channel 130)
(readTerm "\n")
(fs ",")
(eol "\n")
(multiField dataOnly)
(arrayFormat linear)
(timeout 5)
(byteOrder 0)
(idn "\n")
(isPresent 1)
(ppAddr "GPIB0::1::INSTR")
(ScpiFileName "\n.xml")
(model "\n")
(eoiEnabled 1)
(VISAlias "Scope")
(VISAddr "GPIB0::1::INSTR")
(model "\n"
(standard 488)))
(iodevice "DMM"
(type GPIB-VISA)
(channel 130)
(readTerm "\n")
(fs ",")
(eol "\n")
(multiField dataOnly)
(arrayFormat linear)
(timeout 5)
(byteOrder 0)
(idn "hp34401a")
(isPresent 1)
(ppFile "HP34401")
(ppAddr "GPIB0::22::INSTR")
(ScpiFileName "hp34401a.xml")
(model "hp34401a")
(eoiEnabled 1)
(VISAlias "DMM")
(VISAddr "GPIB0::22::INSTR")
(model "hp34401a"
(standard 488)))
(iodevice "FuncGenUSB"
(type USB)
(channel 170)
(readTerm "\n")
(fs ",")
(eol "\n")
(multiField dataOnly)
(arrayFormat linear)
(timeout 5)
(byteOrder 0)
(idn "teafg3022b")
(isPresent 1)
(ppAddr "USB0::0x0699::0x0347::C034140::INSTR")
(ScpiFileName "teafg3022b.xml")
(model "teafg3022b")
(eoiEnabled 1)
(VISAlias "FuncGenUSB")
(VISAddr "USB0::0x0699::0x0347::C034140::INSTR")
(model "teafg3022b"
(standard 488))))
(SaveCF no)
(device 0 ROOTCONTEXT
(properties
(variableName Main)
(variableScope glob)
(trigMode deg)
(nextID 26)
(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  0.3))
(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  100000))
(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  10))
(initValue Real
(data  0))))
(device 6 FORLOGRANGE
(properties
(variableScope cont)
(from 100)
(thru 100000)
(perDecade 10))
(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  -180))
(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  180))
(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 12 FORMULA
(properties
(variableScope cont)
(expr 1 "A"))
(interface
(input 1
(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 33220A funcgen and Tektronix 3012B oscope 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 to the output. The address of the scope is 1401 and the funcgen is 1410; don\'t change them. Make certain that the plug and play driver for the funcgen has been loaded; it is listed as the driver for the Agilent 33250a. Manually turn on the rms measurements for Ch1 and Ch2 on the oscope and the phase measurement from Ch1 to Ch2.\\par\r\n}\r\n"
)))
(device 20 IODEVICE
(properties
(name "scope (\n @GPIB0::1::INSTR)")
(variableScope cont)
(transactions 10 "WRITE TEXT \"select ch1\" EOL" "WRITE TEXT \"select ch2\" EOL"
"WRITE TEXT \"ch1:position 2\" EOL" "WRITE TEXT \"ch2:position -2\" EOL"
"WRITE TEXT \"ch:impedance MEG\" EOL" "WRITE TEXT \"ch2:impedance MEG\" EOL"
"WRITE TEXT \"ch1:coupling AC\" EOL" "WRITE TEXT \"ch2:coupling AC\" EOL"
"WRITE TEXT \"autoset execute\" EOL" "WRITE TEXT \"trig:ext\" EOL"))
(implementation
(ioDevType 13)
(visaAlias "Scope")
(iopath "scope")))
(device 22 IODEVICE
(properties
(name "scope (\n @GPIB0::1::INSTR)")
(variableScope cont)
(transactions 14 "WAIT INTERVAL:1.5" "WRITE TEXT \"autoset execute\" EOL"
"WRITE TEXT \"trig:ext\" EOL" "WAIT INTERVAL:1"
"WRITE TEXT \"measurement:meas1:source ch1:type rms\" EOL"
"WRITE TEXT \"measurement:meas1:value?\" EOL" "READ TEXT V_in REAL64"
"WRITE TEXT \"measurement:meas2:source ch2:type rms\" EOL"
"WRITE TEXT \"measurement:meas2:value?\" EOL" "READ TEXT V_out REAL64"
"WAIT INTERVAL:1"
"WRITE TEXT \"measurment:meas3:source ch1;:measurment:meas3:source ch2;:measurement:meas3:type pha\" EOL"
"WRITE TEXT \":measurement:meas3:value?\" 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 13)
(visaAlias "Scope")
(iopath "scope")))
(device 24 IODEVICE
(properties
(name "FuncGenUSB (teafg3022b @FuncGenUSB)")
(variableScope cont)
(transactions 9 "WRITE TEXT \"outp1:stat on\" EOL"
"WRITE TEXT \"outp2:stat off\" EOL" "WRITE TEXT \"outp1:imp inf\" 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 rms\" 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 "FuncGenUSB")
(iopath "FuncGenUSB")))
(device 25 IODEVICE
(properties
(name "FuncGenUSB (teafg3022b @FuncGenUSB)")
(variableScope cont)
(transactions 1 "WRITE TEXT \"freq \", f, \" hz\" EOL"))
(interface
(input 1
(name "f")
(optional yes)))
(implementation
(ioDevType 17)
(visaAlias "FuncGenUSB")
(iopath "FuncGenUSB")))
(configuration
(connect D1:1 D4:1)
(connect D2:1 D4:2)
(connect D3:1 D4:3)
(connect D15:1 D5:1)
(connect D15:2 D5:2)
(connect D15:3 D8:1)
(connect D6:1 D8:2)
(connect D8:1 D9:1)
(connect D7:1 D9:2)
(connect D9:1 D10:1)
(connect D4:1 D11:1)
(connect D10:1 D11:2)
(connect D4:0 D11:3)
(connect D4:1 D12:1)
(connect D5:1 D12:2)
(connect D4:0 D12:3)
(connect D16:0 D14:0)
(connect D17:0 D15:0)
(connect D0:1 D16:1)
(connect D1:1 D16:2)
(connect D4:1 D17:1)))
(contextCarrier
(wndRestoredOrigin 2 2)
(wndRestoredExtent 792 395)
(wndState max)
(active detail)
(detail
(extent 1040 824)
(anchorPt 11 147)
(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 icon)
(icon
(extent 38 15))
(open
(extent 74 29)
(showFormat int))
(pinCenter 280 550))
(devCarrierFor 9
(active icon)
(icon
(extent 38 15))
(open
(extent 74 29)
(showFormat int))
(pinCenter 360 550))
(devCarrierFor 10
(active icon)
(icon
(extent 86 25))
(open
(extent 110 50))
(terminals on)
(pinCenter 350 510))
(devCarrierFor 11
(active icon)
(icon
(extent 83 25))
(open
(extent 107 50))
(terminals on)
(pinCenter 500 510))
(devCarrierFor 12
(active icon)
(icon
(extent 50 15))
(open
(extent 71 50))
(terminals on)
(pinCenter 580 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 -150 200 4 linear))
(domain 100 1258.92541179417 4 log)
(trace 0 onScale 0
(name "")
(traceColor "Yellow")
(lineType 12)
(pointType 0)))
(pinCenter 850 470))
(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 5 4 linear))
(domain 100 1258.92541179417 4 log)
(trace 0 onScale 0
(name "")
(traceColor "Yellow")
(lineType 12)
(pointType 0)))
(pinCenter 850 170))
(devCarrierFor 17
(active icon)
(icon
(extent 70 51)
(iconImage "notepad.icn"))
(open
(extent 524 316)
(editing enabled))
(pinCenter 110 550))
(devCarrierFor 20
(active icon)
(icon
(extent 174 51)
(iconImage "io.icn"))
(open
(extent 221 74))
(terminals on)
(pinCenter 390 120))
(devCarrierFor 22
(active icon)
(icon
(extent 174 51)
(iconImage "io.icn"))
(open
(extent 234 116))
(terminals on)
(pinCenter 390 300))
(devCarrierFor 24
(active icon)
(icon
(extent 261 51)
(iconImage "io.icn"))
(open
(extent 237 74))
(terminals on)
(pinCenter 430 30))
(devCarrierFor 25
(active icon)
(icon
(extent 261 51)
(iconImage "io.icn"))
(open
(extent 237 74))
(terminals on)
(pinCenter 430 210))
(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 D15:1 D5:1
(points 6 479 290 490 290 490 350 350 350 350 370 362 370))
(connect D15:2 D5:2
(points 6 479 300 520 300 520 420 340 420 340 390 362 390))
(connect D15:3 D8:1
(points 6 479 310 530 310 530 430 290 430 290 500 304 500))
(connect D6:1 D8:2
(points 6 301 550 320 550 320 580 240 580 240 520 304 520))
(connect D8:1 D9:1
(points 4 395 510 420 510 420 500 456 500))
(connect D7:1 D9:2
(points 4 381 550 420 550 420 520 456 520))
(connect D9:1 D10:1
(points 2 544 510 552 510))
(connect D4:1 D11:1
(points 8 267 220 320 220 320 190 490 190 490 200 510 200 510 380 688 380))
(connect D10:1 D11:2
(points 4 607 510 630 510 630 470 688 470))
(connect D4:0 D11:3
(points 9 220 248 220 260 230 260 230 280 400 280 400 260 660 260 660 560 688
560))
(connect D4:1 D12:1
(points 8 267 220 320 220 320 190 490 190 490 160 500 160 500 80 688 80))
(connect D5:1 D12:2
(points 4 417 380 500 380 500 170 688 170))
(connect D4:0 D12:3
(points 7 220 248 220 260 230 260 230 280 400 280 400 260 688 260))
(connect D16:0 D14:0
(points 4 430 58 430 70 390 70 390 92))
(connect D17:0 D15:0
(points 4 430 238 430 250 390 250 390 272))
(connect D0:1 D16:1
(points 4 122 70 140 70 140 20 297 20))
(connect D1:1 D16:2
(points 4 122 150 150 150 150 40 297 40))
(connect D4:1 D17:1
(points 4 267 220 290 220 290 210 297 210)))
(stackingOrder 0 2 3 1 6 7 9 4 12 11 5 8 13 10 14 17 16 15))
(numberFormats
(realFormat standard)
(realSigDigits 4)
(realRadixSpec 4)
(integerBase decimal))))
