# Parameter file for scan.py validation = initialize_fg_scope.py # Declare instruments to be used as the instrument name and serial number. *fg = AFG3021B, C031180 # instrument and serial number, note the necessity of the * *scope = TDS1012B, C055976 # Initialization commands in order 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. scope = factory fg = *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 = select:ch1 0;ch2 0 # Turn off the display of both channels #delay = 1.0 #scope = ch1? #scope-read = ? 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. fg = function sin;frequency 1.0e3 fg = voltage:amplitude 1.000 fg = voltage:offset 0 fg = voltage:phase:adjust 0 # amplitude, not pk-pk fg = :output:impedance maximum fg = :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