SampleQuantityMode
- Updated2026-02-03
- 1 minute(s) read
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
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |