Regeneration Mode

NI-DAQmx C Reference Help

Edition Date: January 2019

Part Number: 370471AM-01

»View Product Info
Download Help (Windows Only)
Data Type: int32
Description: Specifies whether to allow NI-DAQmx to generate the same data multiple times.

If you enable regeneration and write new data to the buffer, NI-DAQmx can generate a combination of old and new data, a phenomenon called glitching.



Valid values

DAQmx_Val_AllowRegen 10097 Allow NI-DAQmx to regenerate samples that the device previously generated. When you choose this value, the write marker returns to the beginning of the buffer after the device generates all samples currently in the buffer.
DAQmx_Val_DoNotAllowRegen 10158 Do not allow NI-DAQmx to regenerate samples the device previously generated. When you choose this value, NI-DAQmx waits for you to write more samples to the buffer or until the timeout expires.



You can get/set/reset this property using:

  DAQmxGetWriteRegenMode

  DAQmxSetWriteRegenMode

  DAQmxResetWriteRegenMode

WAS THIS ARTICLE HELPFUL?

Not Helpful