getMaxDataRate method

double getMaxDataRate()

Implementation

double getMaxDataRate() {
  final pRate = calloc<Double>();
  try {
    bindings.voltageInputGetMaxDataRate(_handle!, pRate);
    return pRate.value;
  } catch (e) {
    throw PhidgetException(
        'An error occurred getting the maximum data rate: $e');
  } finally {
    calloc.free(pRate);
  }
}