Asynchronously generates the pulse configured with ConfigurePulseAsync method.

Syntax

Namespace: NationalInstruments.ECUTS.Pulser

public async Task GeneratePulseAsync(int timeoutInMilliseconds=5_000)

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.

The Pulser state transitions to Unconfigured after the pulse is generated if the following conditions are met:
  • 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

NameTypeDescription
timeoutInMillisecondsint

Specifies the amount of time in milliseconds to wait for a pulse to generate. This parameter is optional and defaults to 5000 ms.

Returns

GeneratePulseAsync(int) returns a task that represents the asynchronous operation.

Exceptions

TypeDescription
PulserSessionException

Thrown when one of the following error conditions occurs: