To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to acquire analog signals while logging the values to a ASCII file.
Description
To log acquired data to a file there are several possibilities: You can write the data more efficiently in a binary format (either custom or standardized like TDMS) or in a human-readable format normally called text or ASCII format.
This example demonstrates how to write data acquired with the very common NI-DAQmx driver to a text file. But you can easily use the same functions to log data acquired with other or 3rd party drivers too.
To improve performance, the example opens a file reference before starting to acquire data and close the reference only after the logging has been finished.
Also the example shows how to log additional information (meta data) to the file.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Can you convert it to 8.5? It can most likely fit to my application. it's great.
Done!!
please can you convert it to 8.2
Sure!
thanks friend
Could you please add some screenshots of your code to this example?