R6581 is set to
"CONFIGURE GPIB"
"LANGUAGE"
"ADVANTEST"
Two different GPIB command set is supported by the 6581, what TiN described is in the other, "SCPI".
I cannot really help you with the ADC format, I opted for other as it looked easier to understand, e.g.:
self.inst.write("*RST")
self.inst.write("*CLS")
self.inst.write("FORM ASCII")
self.inst.write("CONF:VOLT:DC")
self.inst.write("VOLT:DC:RANG:AUTO ON")
self.inst.write("VOLT:DC:NPLC 50")
self.inst.write("VOLT:DC:DIG 8")
self.inst.write("ARM:SOUR IMM")
self.inst.write("TRIG:SOUR IMM")
self.inst.write("ZERO:AUTO ON")
self.inst.write("INIT:CONT ON")
self.inst.write("VOLT:DC:PROT ON")
There are also a lot of examples in chapter 9.12 in the manual, for both command sets. The title can be translated by google, so can have an idea what the program is doing.