getMaxVoltage method

double getMaxVoltage()

Implementation

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