ConfigureAcquisitionTimeAsync(TimeSpan, TimeSpan)
- Updated2025-01-08
- 1 minute(s) read
Asynchronously configures the acquisition time and pretrigger time.
Syntax
Namespace: NationalInstruments.ECUTS.Pulser
public async Task ConfigureAcquisitionTimeAsync(TimeSpan totalAcquisitionTime, TimeSpan pretriggerTime)
Remarks
To ensure the desired acquisition time parameters are applied, you must call the ConfigureAcquisitionTimeAsync method after creating all the required input channels with the CreateCurrentInputChannelAsync or CreateVoltageInputChannelAsync method.
NI recommends using TimeSpan.FromTicks() when providing values for the totalAcquisitionTime and pretriggerTime parameters to avoid unintended data rounding. 1 tick = 100 ns, e.g. TimeSpan.FromTicks(10000) = 1 ms.
Parameters
| Name | Type | Description |
|---|---|---|
| totalAcquisitionTime | TimeSpan | Specifies the total duration of the acquisition. |
| pretriggerTime | TimeSpan | Specifies the minimum duration of time for which data is acquired per channel before recognizing the Reference Trigger. |
Returns
ConfigureAcquisitionTimeAsync returns a task that represents the asynchronous operation.
Exceptions
| Type | Description |
|---|---|
| PulserSessionException | Thrown when one of the following error conditions occurs:
|