ReadRelativeTo Enumeration
- Updated2023-02-21
- 2 minute(s) read
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 name | Value | Description | |
---|---|---|---|
FirstSample | 10424 | Start reading samples relative to the first sample acquired. | |
CurrentReadPosition | 10425 | Start 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. | |
ReferenceTrigger | 10426 | Start reading samples relative to the first sample after the reference trigger occurred. | |
FirstPretriggerSample | 10427 | Start reading samples relative to the first pretrigger sample. You specify the number of pretrigger samples to acquire when you configure a reference trigger. | |
MostRecentSample | 10428 | Start 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.