03-01-2021 09:59 PM
I am beginner of labview. Please teach me.
I want to measure voltages from 8 analog inputs of USB-6346 and save data.
Voltages are converted to pressure.
I made one vi program with bellow samples;
・DAQmx アナログ集録で集録したデータをCSV形式で保存/Writing data acquired with DAQmx AI into CSV files - NI Community
However,the data was not written down to text file.
Please teach me how to fix or improve its vi.
The vi is attached.
Solved! Go to Solution.
03-02-2021 07:58 AM
I have only a couple minutes and can't explain a lot of things in detail. Highlights:
1. You should write data to your file *inside* your consumer loop. (The loop that Dequeues your DAQ data).
2. You need a scheme for stopping execution gracefully. Under normal run conditions, none of your loops will ever stop. You must have been clicking the "Abort" toolbar icon, which is what prevented you from reaching the part of the code that wrote to the file *after* the loop.
3. Be sure to close the file before the code ends.
-Kevin P