Method: Phidgets::PowerGuard#getOverVoltage

Defined in:
ext/phidgets/phidgets_power_guard.c

#getOverVoltageObject Also known as: over_voltage

The device constantly monitors the output voltage, and if it exceeds the OverVoltage value, it will disconnect the input from the output. This functionality is critical for protecting power supplies from regenerated voltage coming from motors. Many power supplies assume that a higher than output expected voltage is related to an internal failure to the power supply, and will permanently disable themselves to protect the system. A typical safe value is to set OverVoltage to 1-2 volts higher than the output voltage of the supply. For instance, a 12V supply would be protected by setting OverVoltage to 13V. The device will connect the input to the output again when the voltage drops to (OverVoltage - 1V).



21
22
23
# File 'ext/phidgets/phidgets_power_guard.c', line 21

VALUE ph_power_guard_get_over_voltage(VALUE self) {
  return ph_get_double(get_ph_handle(self), (phidget_get_double_func)PhidgetPowerGuard_getOverVoltage);
}