vhq205l(), HV power supply

This function controls the VHQ205L HV power supply of ISEG (2x 5 kV, 1 mA).

Write:
$ret = vhq205l( "hv1", $keyword, $value);
Read:
$ret = vhq205l( "hv1", $keyword);

Keywords:

 actual_current, R
 actual_value, R
 current_limit, muA, R/W
 data_ready, R
 D0 voltage A
 D1 current A
 D2 voltage B
 D3 current B
 hw_limits, front panel switches position, R
 D0..D3 current
 D4..D8 current
 modul, R
 ramp, V/s [2,255], R/W
 register_1, R
 D0 Output voltage channel A is zero
 D1 Control switch, 0 -> DAC, 1 -> manual
 D2 Output polarity, 1 -> positive
 D3 HV on (0)/off (1)
 D4 Kill switch, 0 -> disabled
 D5 Output voltage derivative, 1 -> rising
 D6 Status V-out, 1 -> V-out changing
 D7 Error on channel A, 1 -> error
 D8 ... channel B
 register_2, R
 D0 Timeout error
 D1 I-out > I-max
 D2 V-out reached set point
 D3 A front panel switch has been changed
 D4 Ratio V-setpoint/V-max > 1
 D5 External INIHIBT is/was active
 D6 Exceed/ed V-max or I-max
 D7 Quality of V-out not garanteed
 D8 ... channel B
 set_point, R/W

e.g.:
$ret = vhq205l( "hv12", "actual_value");
$ret = vhq205l( "hv12", "set_point", "1234");

If a new set point is specified, Online also starts the ramp and waits for the voltage to reach the final value.