ConfigurePulseAsync(double, TimeSpan, TimeSpan, TimeSpan)
- Updated2025-01-08
- 2 minute(s) read
Asynchronously configures a pulse with the specified set point and timing parameters.
Syntax
Namespace: NationalInstruments.ECUTS.Pulser
public async Task ConfigurePulseAsync(double setPointInAmperes, TimeSpan riseTime, TimeSpan dwellTime, TimeSpan fallTime)
Remarks
The following picture illustrates the pulse parameters:

NI recommends using TimeSpan.FromTicks() when providing values for the pulse timing parameters (riseTime , dwellTime , and fallTime ) to avoid unintended data rounding. 1 tick = 100 ns, e.g. TimeSpan.FromTicks(10000) = 1 ms. The highest precision for timing is 50 us (500 ticks). Input values will be rounded up to the closest multiple of 500 ticks.
Parameters
| Name | Type | Description |
|---|---|---|
| setPointInAmperes | double | Specifies the pulse set point value in amperes. |
| riseTime | TimeSpan | Specifies the time span for the pulse to rise from 0 to the set point. |
| dwellTime | TimeSpan | Specifies the time span for the pulse to dwell at the set point. |
| fallTime | TimeSpan | Specifies the time span for the pulse to fall from the set point. |
Returns
ConfigurePulseAsync returns a task that represents the asynchronous operation.
Exceptions
| Type | Description |
|---|---|
| PulserSessionException | Thrown when one of the following error conditions occurs:
|