rigol-ds: replace some magic numbers by appropriate constant or variable

This fixes bug #406.