Handing Different Power Supplies from Agilent
All supported power supplies from Agilent/Keithley are currently handled by the AgilentPs
class. This mostly works, since the programming API is the same for all of them.
The problem is that we currently support multi and single channel power supplies. This means:
- No explicit error checking that a valid channel is being used. We assume that all power supplies have three channels.
- beep and an error on the display during each command, since the
INST:NSEL ch
command is supported by the E364xA
I'm starting to think we should split this into two classes using the model name as the class name. After all Agilent/Keithley/whatever they are now makes even more models. There will be code duplication, but it will give us even more flexibility further down the line.
Another option would be to determine the model automatically from *IDN?
and enable multi-channel operation if a multi-channel power supply is used.