Logging >> 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 enable logging and whether to allow reading data while logging. Log mode allows for the best performance. However, you cannot read data while logging if you specify this mode. If you want to read data while logging, specify Log and Read mode.

Valid values

DAQmx_Val_Off 10231 Disable logging for the task.
DAQmx_Val_Log 15844 Enable logging for the task. You cannot read data using an NI-DAQmx Read function when using this mode. If you require access to the data, read from the TDMS file.
DAQmx_Val_LogAndRead 15842 Enable both logging and reading data for the task. You must use an NI-DAQmx Read function to read samples for NI-DAQmx to stream them to disk.

You can get/set/reset this property using:





Not Helpful