HV Supply Interface / IV Curve test refactoring

I have finally tested these changes with our Iseg power supply, works fine without changes.
If no one else has objections or problems with the code I would like to merge this soon.