(saveFormat "2.3") (date "Tue 19/Feb/2002 10:35:54 ") (veerev "6.0") (platform "PC") (execMode v6) (filterNAN 0) (workspaceStackingOrder M) (sysconfig (iodevice "newInstrument3" (type GPIB) (gateway "This host") (channel 14) (subchannel 7) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idFileName "hp54504a.cid") (idn "hp54504a") (ppAddr "GPIB0::7::INSTR") (eoiEnabled 1) (model "hp54504a" (standard 488))) (iodevice "funGen" (type GPIB) (gateway "This host") (channel 14) (subchannel 16) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idFileName "hp8116a.cid") (idn "unknown") (ppAddr "GPIB0::16::INSTR") (eoiEnabled 1) (model "unknown" (standard 488))) (iodevice "DMM" (type GPIB) (gateway "This host") (channel 14) (subchannel 22) (readTerm "\n") (fs ",") (eol "\n") (multiField dataOnly) (arrayFormat linear) (timeout 5) (byteOrder 0) (idFileName "hp34401a.cid") (idn "hp34401a") (ppFile "HP34401") (ppAddr "GPIB0::22::INSTR") (eoiEnabled 1) (model "hp34401a" (standard 488)))) (SaveCF no) (device 0 ROOTCONTEXT (properties (trigMode deg) (nextID 78) (popupTitleText "Untitled") (popupMoveable 1) (deleteGlobals 0)) (deviceList (device 0 SLIDER (properties (name "Amplitude (V)") (range 0 1) (detents 0.001)) (interface (output 1 (name "Real64") (lock name constraints))) (implementation (value Real64 (data 1)) (initValue Real (data 0.1)))) (device 1 IODEVICE (properties (name "Function Generator Setup") (transactions 4 "WRITE TEXT \"AMP\" STR" "WRITE TEXT Vin STR" "WRITE TEXT \"V,\" STR EOL" "WRITE TEXT \"D0,\" STR EOL")) (interface (input 1 (name "Vin") (optional yes))) (implementation (iopath "funGen"))) (device 2 IODEVICE (properties (name "DMM (hp34401a @ 1422)") (transactions 2 "WRITE TEXT \"*RST;\" STR EOL" "WRITE TEXT \":CONF:VOLT:AC;\" STR EOL")) (implementation (iopath "DMM"))) (device 3 FORRANGE (properties (name "Frequency Range (Hz)") (from 100) (thru 10000) (step 500)) (interface (output 1 (name "Data") (lock name constraints)))) (device 4 IODEVICE (properties (name "Set Frequency") (transactions 3 "WRITE TEXT \"FRQ\" STR" "WRITE TEXT f STR" "WRITE TEXT \"HZ,\" STR EOL")) (interface (input 1 (name "f") (optional yes))) (implementation (iopath "funGen"))) (device 6 IODEVICE (properties (name "Read Voltage") (transactions 2 "WRITE TEXT \":READ?\" STR EOL" "READ TEXT Vout REAL64")) (interface (output 1 (name "Vout") (optional yes))) (implementation (iopath "DMM"))) (device 10 XYPLOT (properties (name "Frequency Response")) (interface (input 1 (name "XData") (lock constraints)) (input 2 (name "response") (lock constraints))) (implementation (tracePin 2) (graphMode rectangular) (autoAutoX) (autoAutoY))) (device 11 START25) (device 13 COLLECTOR (properties (name "Collect Frequency")) (interface (input 1 (name "Data") (tag "Data")) (input 2 (type trigger) (name "XEQ") (lock name constraints)) (output 1 (name "Array") (tag "Array")))) (device 14 COLLECTOR (properties (name "Collect Lin Gain")) (interface (input 1 (name "Data") (tag "Data")) (input 2 (type trigger) (name "XEQ") (lock name constraints)) (output 1 (name "Array") (tag "Array")))) (device 55 DECLVAR (properties (name "Declare range1") (scope glob) (globalName "range1")) (implementation (value Object (data "ANY ")))) (device 56 DECLVAR (properties (name "Declare range2") (scope glob) (globalName "range2")) (implementation (value Object (data "ANY ")))) (device 57 DECLVAR (properties (name "Declare sheet") (scope glob) (globalName "sheet")) (implementation (value Object (data "ANY ")))) (device 60 BEEP (properties (frequency 1000) (duration 0.1) (volume 80)) (implementation)) (device 64 FORMULA (properties (name "Fill in Cells") (expr 4 "range1 =transpose([A]);" "range2=transpose([B]);" "range3=transpose([C]);" "")) (interface (input 1 (name "A") (optional yes)) (input 2 (name "B") (optional yes)) (input 3 (name "C") (optional yes)))) (device 65 FORMULA (properties (name "Fill in Titles") (expr 7 "sheet.Range(\"A1:A1\") = \"ECE300 Frequency Response Data\";" "sheet.Range(\"A3:A3\") = \"Frequency\";" "sheet.Range(\"A4:A4\") = \"Hz\";" "sheet.Range(\"B3:B3\") = \"Vout/Vin\";" "sheet.Range(\"B4:B4\") = \"V\";" "sheet.Range(\"B3:B3\") = \"Vout/Vin\";" "sheet.Range(\"B4:B4\") = \"dBV\";")) (interface (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 66 FORMULA (properties (name "Set up Excel Worksheet") (expr 12 "set sheet = CreateObject(\"Excel.Sheet\").worksheets(1);" "sheet.Application.Visible = TRUE;" "sheet.Application.Visible = TRUE;" "sheet.Application.Windows(1).Caption = \"Test Results\";" "" "set range1 = sheet.Range(\"A5:A105\");" "set range2 = sheet.Range(\"B5:B105\");" "set range3 = sheet.Range(\"C5:C105\");" "" "" "" ""))) (device 67 NOTE (properties (text2 7 "" " Frequency Response Data Acquisition System" " ECE 300 Signals and Systems" "" " Fred Berry/Bruce Ferguson Dec 2001" " Richard Woodring Feb 2002" ""))) (device 68 NOTE (properties (text2 33 "" "Instructions" "" "1. Turn on the HP 8116A Function Generator and HP 34401A DMM. Be sure the function generator mode (left side) is set to \"norm\"," "the mode is set to \"sin\", and the sin wave duty cycle is set to 50% before starting this program. Once this program starts, control " "of these two lab units is taken away from their front panels - the unit must be turned off and on to change front panel settings " "(such as changing the waveform shape)." "" "2. Connect FG output to circuit input, and circuit output to DMM input. Be sure appropriate power has been supplied to the circuit." "Also be sure you have connected the circuit output correctly to the DMM." "" "3. Set the FG amplitude using the sliding scale or number box in the \"Amplitude\" box in this program. This is a 0-Peak amplitude " "setting. Remember that the DMM is reading RMS." "" "4. Set the apprpriate frequency sweep range in the \"Frequency Range\" box. The number of points is found by calculating " "(Thru-From)/Step. This program is set to write up to one hundred data points to an Excel file. If you need more points, change " "the settings for range1 (freq) and range2 (voltage) in the \"Set Up Excel Worksheet\" box." "" "5. Press the start button to the left of this box. " "" "6. Before you do anything with Excel, get back to the VEE window and answer the Excel questions. You will be asked for a" "filename to save the spreadsheet under (file placed on desktop), and then asked to shut down Excel. You may shut down " "Excel if you like, or leave it open. If you get a question about overwriting an existing file in VEE, you will also get it in Excel, so" "you need to check both program windows." "" "The program will execute by looping through the frequency values. For each value, the FG frequency is set," "the DMM reads the output voltage level, and the process repeats. The data is dispayed on the graph.Once this" "is complete, the data is put into arrays and written to the Excel file." "" "" "" "" ""))) (device 69 JUNCTION (properties (name "JCT")) (interface (input 1 (name "A")) (input 2 (name "B")) (output 1 (name "Data")))) (device 70 FORMULA (properties (name "Save Worksheet") (expr 1 "sheet.SaveAs(filename)")) (interface (input 1 (name "filename") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 71 FILESELECT (properties (name "File Name Selection") (prompt "Enter File Name:") (initialDirectory "C:\\WINDOWS\\Desktop") (initialFile "labdata.xls") (dialogMode Writing)) (interface (input 1 (name "Initial File") (tag "Initial File") (requires (datatype Text) (shape "Scalar")) (lock constraints) (optional yes) (buffer YES)) (output 1 (name "File Name") (lock name constraints)) (output 2 (name "Cancel") (lock name constraints))) (implementation)) (device 72 LITERALCONSTANT (properties (name "Initial Filename")) (interface (output 1 (name "Text") (lock name constraints))) (implementation (value Text (data "labdata.xls")) (initValue Text (data "")))) (device 73 FORMULA (properties (name "normalize") (expr 1 "A/B")) (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 74 FORMULA (properties (name "lin2dB") (expr 3 "20*log10(A)" "" "")) (interface (input 1 (name "A") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 75 FORMULA (properties (name "peak2rms") (expr 1 "A/sqrt(2)")) (interface (input 1 (name "A") (optional yes)) (output 1 (name "Result") (tag "Result") (lock name constraints) (optional yes)))) (device 76 DECLVAR (properties (name "Declare range3") (scope glob) (globalName "range3")) (implementation (value Object (data "ANY ")))) (device 77 COLLECTOR (properties (name "Collect dB Gain")) (interface (input 1 (name "Data") (tag "Data")) (input 2 (type trigger) (name "XEQ") (lock name constraints)) (output 1 (name "Array") (tag "Array")))) (configuration (connect D7:0 D0:0) (connect D0:1 D1:1) (connect D1:0 D2:0) (connect D2:0 D3:0) (connect D3:1 D4:1) (connect D4:0 D5:0) (connect D3:1 D6:1) (connect D24:1 D6:2) (connect D3:1 D8:1) (connect D3:0 D8:2) (connect D23:1 D9:1) (connect D3:0 D9:2) (connect D19:1 D13:0) (connect D15:0 D14:0) (connect D8:1 D14:1) (connect D9:1 D14:2) (connect D27:1 D14:3) (connect D16:0 D15:0) (connect D20:0 D19:1) (connect D21:2 D19:2) (connect D21:1 D20:1) (connect D22:1 D21:1) (connect D14:0 D22:0) (connect D5:1 D23:1) (connect D25:1 D23:2) (connect D23:1 D24:1) (connect D0:1 D25:1) (connect D24:1 D27:1) (connect D3:0 D27:2)) (ShowOnExecPanel)) (contextCarrier (wndOrigin 2 2) (wndState res) (active panel) (panel (extent 910 625) (widget 3 detail (relativeOrigin 10 350) (title on) (borderStyle convex) (extent 170 79)) (widget 0 detail (relativeOrigin 10 60) (title on) (borderStyle convex) (extent 118 222) (layout vertical) (fastmode off) (extratics)) (widget 7 detail (relativeOrigin 50 10) (title off) (borderStyle convex) (extent 47 27)) (widget 6 detail (relativeOrigin 280 30) (title on) (borderStyle convex) (extent 617 389) (displayMode 47) (graphType cartesian) (gridType grid) (scale 0 (name "Frequency Response") (domainName "Frequency (Hz)") (Yspacing 1) (Xspacing 2) (pen 9) (show 1) (range 0.2 0.5 4 linear)) (domain 0.7 7000 4 log) (trace 0 onScale 0 (name "response") (pen 4) (lineType 1) (pointType 0)) (markerPenColor 1))) (detail (extent 1183 804) (anchorPt -35 103) (configuration (devCarrierFor 0 (active open) (icon (extent 80 15)) (open (extent 118 222) (layout vertical) (fastmode off) (extratics)) (pinCenter 130 220)) (devCarrierFor 1 (active icon) (icon (extent 154 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 340 220)) (devCarrierFor 2 (active icon) (icon (extent 154 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 340 300)) (devCarrierFor 3 (active open) (icon (extent 134 0) (iconImage "loop.icn")) (open (extent 170 79)) (pinCenter 140 410)) (devCarrierFor 4 (active icon) (icon (extent 85 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 360 430)) (devCarrierFor 6 (active icon) (icon (extent 81 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 360 510)) (devCarrierFor 10 (active open) (icon (extent 129 51) (iconImage "display.icn")) (open (extent 405 337) (displayMode 47) (graphType cartesian) (gridType grid) (scale 0 (name "H(f) (dBV)") (domainName "Frequency (Hz)") (Yspacing 1) (Xspacing 2) (pen 9) (show 1) (range 0.2 0.5 4 linear)) (domain 0.7 7000 4 log) (trace 0 onScale 0 (name "response") (pen 4) (lineType 1) (pointType 0)) (markerPenColor 1)) (terminals on) (pinCenter 1100 330)) (devCarrierFor 11 (active open) (icon) (open (extent 39 19)) (title off) (bg "Med Yellow Green") (font "Arial" 12 bold) (titleFont "Arial" 12 bold) (pinCenter 130 40)) (devCarrierFor 13 (active icon) (icon (extent 107 25)) (open (extent 96 54)) (terminals on) (pinCenter 750 610)) (devCarrierFor 14 (active icon) (icon (extent 95 25)) (open (extent 96 54)) (terminals on) (pinCenter 760 570)) (devCarrierFor 55 (active icon) (icon (extent 93 15)) (open (extent 344 121)) (pinCenter 180 700)) (devCarrierFor 56 (active icon) (icon (extent 93 15)) (open (extent 344 121)) (pinCenter 180 730)) (devCarrierFor 57 (active icon) (icon (extent 84 15)) (open (extent 388 126)) (pinCenter 180 670)) (devCarrierFor 60 (active icon) (icon (extent 33 15)) (open (extent 162 79)) (pinCenter 750 1190)) (devCarrierFor 64 (active open) (icon (extent 74 0)) (open (extent 325 62)) (terminals on) (pinCenter 510 1010)) (devCarrierFor 65 (active open) (icon (extent 68 15)) (open (extent 415 97)) (pinCenter 510 840)) (devCarrierFor 66 (active open) (icon (extent 165 0)) (open (extent 385 87)) (pinCenter 500 710)) (devCarrierFor 67 (active open) (icon (iconImage "notepad.icn")) (open (extent 355 125) (editing disabled)) (title off) (bg "Teal") (font "Arial" 12) (titleBg "Teal") (pinCenter 580 -280)) (devCarrierFor 68 (active open) (icon (iconImage "notepad.icn")) (open (extent 745 315) (editing disabled)) (title off) (font "Arial" 12) (pinCenter 620 -40)) (devCarrierFor 69 (active icon) (icon (extent 26 25)) (open) (terminals on) (pinCenter 650 1170)) (devCarrierFor 70 (active open) (icon (extent 114 0)) (open (extent 199 36)) (pinCenter 620 1110)) (devCarrierFor 71 (active icon) (icon (extent 137 25)) (open (extent 308 110)) (terminals on) (pinCenter 400 1100)) (devCarrierFor 72 (active icon) (icon (extent 103 16)) (open (extent 139 30)) (pinCenter 260 1100)) (devCarrierFor 73 (active icon) (icon (extent 59 25)) (open (extent 71 42)) (terminals on) (pinCenter 510 480)) (devCarrierFor 74 (active icon) (icon (extent 39 15)) (open (extent 71 61)) (terminals on) (pinCenter 630 420)) (devCarrierFor 75 (active icon) (icon (extent 61 15)) (open (extent 71 31)) (terminals on) (pinCenter 350 170)) (devCarrierFor 76 (active icon) (icon (extent 93 15)) (open (extent 344 121)) (pinCenter 180 760)) (devCarrierFor 77 (active icon) (icon (extent 93 25)) (open (extent 96 54)) (terminals on) (pinCenter 760 530)) (connect D7:0 D0:0 (points 2 130 52 130 88)) (connect D0:1 D1:1 (points 2 191 220 260 220)) (connect D1:0 D2:0 (points 2 340 248 340 272)) (connect D2:0 D3:0 (points 6 340 328 340 350 250 350 250 340 140 340 140 350)) (connect D3:1 D4:1 (points 4 227 410 250 410 250 430 315 430)) (connect D4:0 D5:0 (points 2 360 458 360 482)) (connect D3:1 D6:1 (points 6 227 410 260 410 260 380 440 380 440 240 825 240)) (connect D24:1 D6:2 (points 2 652 420 825 420)) (connect D3:1 D8:1 (points 6 227 410 250 410 250 430 300 430 300 600 694 600)) (connect D3:0 D8:2 (points 3 140 452 140 620 694 620)) (connect D23:1 D9:1 (points 4 542 480 560 480 560 560 710 560)) (connect D3:0 D9:2 (points 5 140 452 140 620 670 620 670 580 710 580)) (connect D19:1 D13:0 (points 5 665 1170 690 1170 690 1160 750 1160 750 1180)) (connect D15:0 D14:0 (points 2 510 891 510 958)) (connect D8:1 D14:1 (points 6 806 610 830 610 830 910 300 910 300 990 315 990)) (connect D9:1 D14:2 (points 6 810 570 840 570 840 920 290 920 290 1010 315 1010)) (connect D27:1 D14:3 (points 6 809 530 850 530 850 930 280 930 280 1030 315 1030)) (connect D16:0 D15:0 (points 2 500 756 510 771)) (connect D20:0 D19:1 (points 3 620 1130 620 1160 634 1160)) (connect D21:2 D19:2 (points 6 471 1110 490 1110 490 1150 610 1150 610 1180 634 1180)) (connect D21:1 D20:1 (points 4 471 1090 500 1090 500 1110 518 1110)) (connect D22:1 D21:1 (points 2 314 1100 329 1100)) (connect D14:0 D22:0 (points 4 510 1043 510 1060 260 1060 260 1089)) (connect D5:1 D23:1 (points 4 403 510 430 510 430 470 478 470)) (connect D25:1 D23:2 (points 4 383 170 450 170 450 490 478 490)) (connect D23:1 D24:1 (points 4 542 480 570 480 570 420 608 420)) (connect D0:1 D25:1 (points 4 191 220 240 220 240 170 317 170)) (connect D24:1 D27:1 (points 4 652 420 680 420 680 520 711 520)) (connect D3:0 D27:2 (points 5 140 452 140 620 670 620 670 540 711 540))) (stackingOrder 0 7 11 10 12 19 13 20 3 21 22 26 16 15 9 8 27 17 6 1 2 25 24 23 4 5 14 18)) (numberFormats (realFormat standard) (realSigDigits 4) (realRadixSpec 4) (integerBase decimal))))