ChargePulserAsync(double, TimeSpan)
- Updated2025-01-08
- 1 minute(s) read
Asynchronously charges the Pulser to a specified voltage with a specified timeout.
Syntax
Namespace: NationalInstruments.ECUTS.Pulser
public async Task ChargePulserAsync(double voltageInVolts, TimeSpan timeout)
Parameters
| Name | Type | Description |
|---|---|---|
| voltageInVolts | double | Specifies the voltage to which the Pulser is charged, in volts. |
| timeout | TimeSpan | Specifies the maximum wait time for the capacitor charging process to complete. |
Returns
ChargePulserAsync(double,System.TimeSpan) returns a task that represents the asynchronous operation.
Exceptions
| Type | Description |
|---|---|
| PulserSessionException | Thrown when one of the following error conditions occurs:
|