ChargePulserAsync(double, int)
- Updated2025-01-08
- 1 minute(s) read
Asynchronously charges the Pulser to a specified voltage with a specified timeout in milliseconds.
Syntax
Namespace: NationalInstruments.ECUTS.Pulser
public async Task ChargePulserAsync(double voltageInVolts=15, int timeoutInMilliseconds=5000)
Remarks
InvalidChargePulserVoltage: This method is called when the requested charge Pulser voltage is outside the supported range of 7 V to 20 V.
CapacitorChargingTimeoutExpired: The timeout period elapsed before the Pulser finished charging.
Parameters
| Name | Type | Description |
|---|---|---|
| voltageInVolts | double | Specifies the voltage to which the Pulser is charged, in volts. This parameter is optional and defaults to 15 V. |
| timeoutInMilliseconds | int | Specifies the maximum wait time in milliseconds for the capacitor charging process to complete. This parameter is optional and defaults to 5000 ms. |
Returns
ChargePulserAsync(double, int) returns a task that represents the asynchronous operation.