ReadRelativeTo Enumeration

NI-DAQmx 17.1 .NET Class Library Help

Edition Date: June 2017

Part Number: 370473J-01

»View Product Info
Download Help (Windows Only)

See Also


Specifies the point in the buffer at which to begin a read operation. If you also specify an offset with ReadOffset, the read operation begins at that offset relative to the point you select with this property. The default value is CurrentReadPosition unless you configure a Reference Trigger for the task. If you configure a Reference Trigger, the default value is FirstPretriggerSample.

Namespace: NationalInstruments.DAQmx

Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 17.1.40.99

Syntax

Visual Basic (Declaration)
Public Enumeration ReadRelativeTo

C#
public enum ReadRelativeTo

Members

Member nameDescription
CurrentReadPositionStart reading samples relative to the last sample returned by the previous read. For the first read operation, this position is the first sample acquired or the first pretrigger sample if you configured a reference trigger for the task.
FirstPretriggerSampleStart reading samples relative to the first pretrigger sample. You specify the number of pretrigger samples to acquire when you configure a reference trigger.
FirstSampleStart reading samples relative to the first sample acquired.
MostRecentSampleStart reading samples relative to the next sample acquired. For example, use this value and set ReadOffset to -1 to read the last sample acquired.
ReferenceTriggerStart reading samples relative to the first sample after the reference trigger occurred.

Remarks

Specifies the point in the buffer at which to begin a read operation. If you also specify an offset with ReadOffset, the read operation begins at that offset relative to the point you select with this property. The default value is CurrentReadPosition unless you configure a Reference Trigger for the task. If you configure a Reference Trigger, the default value is FirstPretriggerSample. Use this enumeration to get or set the value of ReadRelativeTo.

See Also

Reference

NationalInstruments.DAQmx Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful