Specifies if a task acquires or generates a finite number of samples or if it continuously acquires or generates samples.

Syntax

Namespace: NationalInstruments.DAQmx

public SampleQuantityMode SampleQuantityMode { get; set; }

Remarks

For an analog input task with a Reference Trigger, you must set this property to FiniteSamples even though the task runs continuously until the Reference Trigger occurs.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.