LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save and Measuring time and voltages in analog inputs

Solved!
Go to solution

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.

 

 

0 Kudos
Message 1 of 2
(1,097 Views)
Solution
Accepted by topic author Rheostudent

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 2
(1,059 Views)