(saveFormat "2.3") (date "Wed 13/Feb/2002 08:28:38 ") (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 83) (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 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 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 3 "range1 =transpose([A]);" "range2=transpose([B]);" "")) (interface (input 1 (name "A") (optional yes)) (input 2 (name "B") (optional yes)))) (device 65 FORMULA (properties (name "Fill in Titles") (expr 5 "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\") = \"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\");" "" "" "" "" ""))) (device 67 NOTE (properties (text2 6 "" " Frequency Response Data Acquisition System" " ECE 300 Signals and Systems" "" " Fred Berry/Bruce Ferguson Dec 2001" ""))) (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 77 FORMULA (properties (expr 1 "A*10^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 79 CONSTANT (properties (name "Start Frequency")) (interface (output 1 (name "Real32") (lock name constraints))) (implementation (value Real32 (data 1)) (initValue Real32 (data 0)))) (device 82 FORRANGE (properties (name "Decade Count") (from 0) (thru 5) (step 0.1)) (interface (output 1 (name "Data") (lock name constraints)))) (configuration (connect D6:0 D0:0) (connect D0:1 D1:1) (connect D1:0 D2:0) (connect D25:1 D3:1) (connect D3:0 D4:0) (connect D25:1 D5:1) (connect D23:1 D5:2) (connect D25:1 D7:1) (connect D25:0 D7:2) (connect D22:1 D8:1) (connect D25:0 D8:2) (connect D18:1 D12:0) (connect D14:0 D13:0) (connect D7:1 D13:1) (connect D8:1 D13:2) (connect D15:0 D14:0) (connect D19:0 D18:1) (connect D20:2 D18:2) (connect D20:1 D19:1) (connect D21:1 D20:1) (connect D13:0 D21:0) (connect D4:1 D22:1) (connect D24:1 D22:2) (connect D22:1 D23:1) (connect D0:1 D24:1) (connect D2:0 D25:0) (connect D26:1 D25:1) (connect D27:1 D25:2)) (ShowOnExecPanel)) (contextCarrier (wndOrigin 2 2) (wndState res) (active detail) (panel (extent 910 625) (widget 6 detail (relativeOrigin 50 10) (title off) (borderStyle convex) (extent 47 27)) (widget 0 detail (relativeOrigin 10 60) (title on) (borderStyle convex) (extent 77 222) (layout vertical) (fastmode off) (extratics)) (widget 5 detail (relativeOrigin 100 0) (title on) (borderStyle convex) (extent 587 329) (displayMode 47) (graphType cartesian) (gridType grid) (scale 0 (name "Frequency Response") (domainName "Frequency (Hz)") (Yspacing 1) (Xspacing 2) (pen 9) (show 1) (range -17 -5 4 linear)) (domain 1000 25000 4 log) (trace 0 onScale 0 (name "response") (pen 4) (lineType 1) (pointType 0)) (markerPenColor 1))) (detail (extent 668 405) (anchorPt -13 -36) (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 280 220)) (devCarrierFor 2 (active icon) (icon (extent 154 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 280 290)) (devCarrierFor 4 (active icon) (icon (extent 85 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 320 430)) (devCarrierFor 6 (active icon) (icon (extent 81 51) (iconImage "io.icn")) (open (extent 229 74)) (terminals on) (pinCenter 320 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 -17 -5 4 linear)) (domain 1000 25000 4 log) (trace 0 onScale 0 (name "response") (pen 4) (lineType 1) (pointType 0)) (markerPenColor 1)) (terminals on) (pinCenter 890 340)) (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 590 550)) (devCarrierFor 14 (active icon) (icon (extent 73 25)) (open (extent 96 54)) (terminals on) (pinCenter 600 600)) (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 57)) (terminals on) (pinCenter 520 1010)) (devCarrierFor 65 (active open) (icon (extent 68 15)) (open (extent 415 97)) (pinCenter 520 860)) (devCarrierFor 66 (active open) (icon (extent 165 0)) (open (extent 385 87)) (pinCenter 520 720)) (devCarrierFor 67 (active open) (icon (iconImage "notepad.icn")) (open (extent 355 115) (editing disabled)) (title off) (bg "Teal") (font "Arial" 12) (titleBg "Teal") (pinCenter 580 -270)) (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 440 480)) (devCarrierFor 74 (active icon) (icon (extent 39 15)) (open (extent 71 61)) (terminals on) (pinCenter 540 430)) (devCarrierFor 75 (active icon) (icon (extent 61 15)) (open (extent 71 31)) (terminals on) (pinCenter 460 300)) (devCarrierFor 77 (active open) (icon) (open (extent 71 42)) (terminals on) (pinCenter 120 450)) (devCarrierFor 79 (active open) (icon (extent 93 0)) (open (extent 129 29) (showFormat real)) (pinCenter -70 400)) (devCarrierFor 82 (active open) (icon (extent 86 0) (iconImage "loop.icn")) (open (extent 122 79)) (pinCenter -70 500)) (connect D6:0 D0:0 (points 2 130 52 130 88)) (connect D0:1 D1:1 (points 2 191 220 200 220)) (connect D1:0 D2:0 (points 2 280 248 280 262)) (connect D25:1 D3:1 (points 4 208 450 240 450 240 430 275 430)) (connect D3:0 D4:0 (points 2 320 458 320 482)) (connect D25:1 D5:1 (points 6 208 450 240 450 240 380 380 380 380 250 615 250)) (connect D23:1 D5:2 (points 2 562 430 615 430)) (connect D25:1 D7:1 (points 6 208 450 230 450 230 560 380 560 380 540 534 540)) (connect D25:0 D7:2 (points 5 130 473 130 610 500 610 500 560 534 560)) (connect D22:1 D8:1 (points 4 472 480 490 480 490 590 561 590)) (connect D25:0 D8:2 (points 3 130 473 130 610 561 610)) (connect D18:1 D12:0 (points 5 665 1170 680 1170 680 1150 750 1150 750 1180)) (connect D14:0 D13:0 (points 2 520 911 520 961)) (connect D7:1 D13:1 (points 6 646 550 670 550 670 640 290 640 290 990 325 990)) (connect D8:1 D13:2 (points 6 639 600 660 600 660 630 280 630 280 1030 325 1030)) (connect D15:0 D14:0 (points 2 520 766 520 791)) (connect D19:0 D18:1 (points 5 620 1130 620 1140 610 1140 610 1160 634 1160)) (connect D20:2 D18:2 (points 6 471 1110 490 1110 490 1140 620 1140 620 1180 634 1180)) (connect D20:1 D19:1 (points 4 471 1090 500 1090 500 1110 518 1110)) (connect D21:1 D20:1 (points 2 314 1100 329 1100)) (connect D13:0 D21:0 (points 4 520 1041 520 1060 260 1060 260 1089)) (connect D4:1 D22:1 (points 4 363 510 390 510 390 470 408 470)) (connect D24:1 D22:2 (points 6 493 300 510 300 510 330 400 330 400 490 408 490)) (connect D22:1 D23:1 (points 4 472 480 500 480 500 430 518 430)) (connect D0:1 D24:1 (points 6 191 220 210 220 210 180 380 180 380 300 427 300)) (connect D2:0 D25:0 (points 4 280 318 280 350 130 350 130 408)) (connect D26:1 D25:1 (points 4 -3 400 20 400 20 440 52 440)) (connect D27:1 D25:2 (points 4 -7 500 10 500 10 460 52 460))) (stackingOrder 0 8 6 10 14 15 7 9 11 16 18 12 19 1 3 4 20 13 21 17 23 22 24 5 26 27 2 25)) (numberFormats (realFormat standard) (realSigDigits 4) (realRadixSpec 4) (integerBase decimal))))