ConfigureAcquisitionTime(TimeSpan)
- Updated2025-01-08
- 1 minute(s) read
Configures the acquisition time with immediate acquisition start upon calling Start.
Syntax
Namespace: NationalInstruments.PowerSignalsDaq
public void ConfigureAcquisitionTime(TimeSpan totalAcquisitionTime)
Remarks
To ensure the desired acquisition time parameters are applied, you must call the ConfigureAcquisitionTime(TimeSpan) method after creating all the required input channels with the CreateCurrentInputChannel or CreateVoltageInputChannel method.
NI recommends using TimeSpan.FromTicks() when providing values for the totalAcquisitionTime parameter 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 acquisition time. |
Exceptions
| Type | Description |
|---|---|
| PowerSignalsDaqException | Thrown when one of the following error conditions occurs:
|