GeneratePulseAsync(TimeSpan)
- Updated2025-01-08
- 1 minute(s) read
Asynchronously generates the pulse configured with ConfigurePulseAsync method.
Syntax
Namespace: NationalInstruments.ECUTS.Pulser
public async Task GeneratePulseAsync(TimeSpan timeout)
Remarks
The Pulser state transitions to Configured after the pulse is generated if the following conditions are met:
This is method is called when no input channels have been created.
The Pulser remains fully charged.
This method is called when no input channels have been created.
The Pulser is no longer fully charged.
The Pulser state transitions to Running after the pulse is generated if there is at least one input channel configured before calling this method. You can call the StopDataAcquisitionAsync method to change the Pulser state to Configured or Unconfigured.
Parameters
| Name | Type | Description |
|---|---|---|
| timeout | TimeSpan | Specifies the wait time for a pulse to generate. |
Returns
GeneratePulseAsync(System.TimeSpan) returns a task that represents the asynchronous operation.
Exceptions
| Type | Description |
|---|---|
| PulserSessionException | Thrown when one of the following error conditions occurs:
|