I agree it is good to add the error handling in case something other than digits is read from the port.
One thing I have noticed is that the input is in this format 7600 02. I am not able to test my program with this example now because I am waiting for a longer serial port cable to arrive but I know that the format at the output of the VISA read is divided in three bytes 76 00 02. >From the manual: "The first two contain the mantissa in a packed BCD X.XXX format and the third byte contains the exponent in two's complement notation". I will first add your part to my program and see how it goes. Thanks for your help again, Pedja
