# 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. # Instrument and serial number. Note the necessity of the * for an instrument declaration statement. #*wg = AFG3021B, C031285 # Use this line to simulate a nonexistent AFG3021B using visa_fake.py #*scope = TDS1012B, C040717 # Use this line to simulate a nonexistent TDS102B using visa_fake.py *wg=AFG3021B # The acutual model of awg in use. *scope=TDS2014B # The actual model of scope in use. # 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: # Return the scope and wg to the default or factory status. Usually not necessary. scope = factory # This takes about 5 seconds. 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! # Important parameters that need to be set. scope = verbose on scope = header off wg = :output:impedance maximum # Configure the wg for an experiment: 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:state on # Turn on the fg # Configure the scope as desired: 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. scope = select:ch1 1 # Turn on channel 1, that is, have it displayed on the screen. scope = select:ch2 1 # Turn on channel 2. Some programs might require that both channels be on even if only one is of interest. scope = acquire:mode average # Continuous display of input signals