Method: Phidgets::PowerGuard#getPowerEnabled

Defined in:
ext/phidgets/phidgets_power_guard.c

#getPowerEnabledBoolean Also known as: power_enabled

When PowerEnabled is true, the device will connect the input to the output and begin monitoring. The output voltage is constantly monitored and will be automatically disconnected from the input when the output exceeds the OverVoltage value. PowerEnabled allows the device to operate as a Solid State Relay, powering on or off all devices connected to the output.

Returns:

  • (Boolean)


38
39
40
# File 'ext/phidgets/phidgets_power_guard.c', line 38

VALUE ph_power_guard_get_power_enabled(VALUE self) {
  return ph_get_bool(get_ph_handle(self), (phidget_get_bool_func)PhidgetPowerGuard_getPowerEnabled);
}