getMaxVoltage method

double getMaxVoltage()

Implementation

double getMaxVoltage() {
  final pVoltage = calloc<Double>();
  try {
    bindings.voltageInputGetMaxVoltage(_handle!, pVoltage);
    return pVoltage.value;
  } catch (e) {
    throw PhidgetException(
        'An error occurred getting the maximum voltage: $e');
  } finally {
    calloc.free(pVoltage);
  }
}