Keysight M8070A Programming Guide 83Programming Examples 3M8070A Jitter Tolerance Measurement CSV OutputThe following python script generates the results from all open jittertolerance measurements to different CSV files. This script can be easilymodified to generate the output of the highest-passing point at each jittermodulation frequency value measured. This script can be run from theM8070A Script Editor or can also be run externally.# M8020A jtol CSV output## Run from the M8070A script editordef WaitForCompletion():res = M8000.Scpi.Query(":syst:err?")if (res != '0,"No error"'):print resWaitForCompletion()M8000.Scpi.Timeout = 120000# loop through all jitter tolerance measurementsfor id in M8000.Scpi.Query(":PLUG:JTOL:CAT?").Split(','):print "Measurement: " + id + ":"results = M8000.Scpi.Query(":PLUG:JTOL:FETC:DATA? " + id).Trim('(',')').Split('#print results# size of resultsprint " " + str(len(results)) + " data items, " + str(int(len(results)/6)) + " rows;",# if there are any rows (and not just a blank measurement), then# use the name of the jtol measurement as the filename# this will overwrite the file if it already exists!# the file will be located in \Program Files (x86)\Agilent\M8070A\bin\, maybeif (int(len(results)/6) == 0):# nothing to write to fileprint "no file created"else:with open(id.Trim('"').Replace(' ','_') + ".csv", 'w') as f:# output header to filef.write("Modulation Frequency (GHz),Sinusoidal Jitter (UI),Number of BRatio,Measurement results\n")