Command
:SENSe:DLENgth:AUTO:IMMediate
This command sets execute auto DUT length setting.
Ena.WriteString ":SENS:DLEN:AUTO:IMM", True
:SENS:DLEN:DATA
:CALC:DLEN:DATA
Edit Test > Test Sequence > Edit Measurement > DUT Length > Auto