NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

ReadRelativeTo Enumeration

ReadRelativeTo Enumeration

ReadRelativeTo Enumeration

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: 20.7.40.49302

Syntax

public enum ReadRelativeTo
Public Enumeration ReadRelativeTo

Members

  Member nameValueDescription
FirstSample10424Start reading samples relative to the first sample acquired.
CurrentReadPosition10425Start 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.
ReferenceTrigger10426Start reading samples relative to the first sample after the reference trigger occurred.
FirstPretriggerSample10427Start reading samples relative to the first pretrigger sample. You specify the number of pretrigger samples to acquire when you configure a reference trigger.
MostRecentSample10428Start reading samples relative to the next sample acquired. For example, use this value and set ReadOffset to -1 to read the last sample acquired.

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

Was this information helpful?