# Parameter file for configure_instruments.py validation = configure_instruments.py # The program reading this file will compare this value to that for which it was written. # Declare each instrument to be used as the instrument name and serial number. # If the sn is omitted, then the first wg or scope of the specified model will be used. *wg = AFG3021B, C031285 # Instrument and serial number. Note the necessity of the * for an instrument declaration statement. *scope = TDS1012B, C040717 # Print initial messages to the console: print = Why do the scope commands take so much time while the fg commands are quickly transmitted? print = If a command takes 4 seconds to be sent, the scope has actually timed out and never executed it. print = The chx:probe command must precede chx:scale, from trial and error. print = Interestingly, the sum of the delay time and the time to execute the first "ch1:" command is always 6 sec. print = Delays are absolutely necessary to guarantee transmission of the commands. # Command sequence: scope = factory wg = *rst print = Must wait 5 seconds for the scope to do whatever it is that it does. delay = 5.0 # Absolutely necessary to sleep a while after the "factory" command. No less than 5! scope = verbose on scope = header off scope = select:ch1 0;ch2 0 # Turn off the display of both channels scope = ch1:probe 1;scale 0.5;position -2.0 # Factory default yunit is V. delay = 1.0 scope = ch1:coupling ac;bandwidth off delay = 1.0 scope = ch2:probe 1;scale 0.5;position 2.0 delay = 1.0 scope = ch2:coupling ac;bandwidth off delay = 0.5 scope = horiz:scale 1e-04 # Factory default time or x unit is s delay = 0.5 scope = horiz:position 0 # Trigger point is centered on the screen. -1e-04 moves it right 1 division. wg = function sin;frequency 1.0e3 wg = voltage:amplitude 1.000 wg = voltage:offset 0 wg = voltage:phase:adjust 0 # amplitude, not pk-pk wg = :output:impedance maximum wg = :output:state on # Turn on the fg scope = select:ch1 1 scope = select:ch2 1 # Turn on both scope channels scope = acquire:mode average # Continuous display of input signals