getVoltageRange method

VoltageOutputRange getVoltageRange()

Implementation

VoltageOutputRange getVoltageRange() {
  final pRange = calloc<Int32>();
  try {
    bindings.voltageOutputGetVoltageRange(_handle!, pRange);
    return VoltageOutputRange(pRange.value);
  } catch (e) {
    throw PhidgetException('An error occurred getting the voltage output range: $e');
  } finally {
    calloc.free(pRange);
  }
}