Fixed problem with voltages range, amplification and offset, for writing .xml files