Configures the acquisition time with immediate acquisition start upon calling Start.

Syntax

Namespace: NationalInstruments.PowerSignalsDaq

public void ConfigureAcquisitionTime(TimeSpan totalAcquisitionTime)

Remarks

Note

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.

Note

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

NameTypeDescription
totalAcquisitionTimeTimeSpan

Specifies the total acquisition time.

Exceptions

TypeDescription
PowerSignalsDaqException

Thrown when one of the following error conditions occurs:
  • PretriggerPlusPostTriggerTimeTooLarge: This method is called when the pre-trigger time requested plus the minimum post-trigger time exceed the requested total acquisition time.

  • InvalidTotalAcquisitionTime: The total acquisition time requested is less than the minimum or greater than the maximum supported total acquisition time.

  • InvalidOperation: The input channel has not been created or when the Power Signals DAQ is still in Running state.