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:

Note

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

NameTypeDescription
setPointInAmperesdouble

Specifies the pulse set point value in amperes.

riseTimeTimeSpan

Specifies the time span for the pulse to rise from 0 to the set point.

dwellTimeTimeSpan

Specifies the time span for the pulse to dwell at the set point.

fallTimeTimeSpan

Specifies the time span for the pulse to fall from the set point.

Returns

ConfigurePulseAsync returns a task that represents the asynchronous operation.

Exceptions

TypeDescription
PulserSessionException

Thrown when one of the following error conditions occurs: