Asynchronously waits until the pulser charging operation is completed or the specified timeout expires.

Syntax

Namespace: NationalInstruments.ECUTS.Pulser

public async Task WaitUntilPulserChargingDoneAsync(TimeSpan timeout)

Remarks

Note

The ChargePulserAsync(double,System.TimeSpan) waits until the Pulser is fully charged. You can call the WaitUntilPulserChargingDoneAsync to ensure the Pulser is fully charged when you need to generate multiple pulses.

Parameters

NameTypeDescription
timeoutTimeSpan

Specifies the wait time for the Pulser charging operation to complete.

Returns

WaitUntilPulserChargingDoneAsync returns a task that represents the asynchronous operation.

Exceptions

TypeDescription
PulserSessionException

Thrown when one of the following error conditions occurs:
  • CapacitorChargingTimeoutExpired: The specified timeout period elapsed prior to the completion of the Pulser charging.

  • This method is called when the Pulser charging has not started with ChargePulserAsync(double,System.TimeSpan) method.