LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to acquire and save the analog voltage values from DAQmx (I don't want the graph, but channels and values in a chart)?

Solved!
Go to solution

Hi,

 

How to acquire and save the voltage values from DAQmx?

 

I tried several example code, but they can only get the graph. I don't want graph. I want to measure the exact values of analog voltage and save those values -- like an excel chart, which contains the selected channels and the voltage values.

 

Which example code can I use?

 

My hardware is NI PCI 6251.

 

Thanks a lot.

0 Kudos
Message 1 of 13
(4,058 Views)
You say you want a chart. Do you really mean you want a table? There are several examples of saving data in the DAQmx examples. Simplest perhaps is to use the Write to Measurement File function.
0 Kudos
Message 2 of 13
(4,053 Views)

Yes. I want to a table to display the data instead of graph and save the data. Is there any example code for that?

0 Kudos
Message 3 of 13
(4,031 Views)

Yes. I mean I want to use a table to display the data on the screen (I found some examples which can acquire data in graph, but I want a table) and save the data. Is there any example code? Thanks a lot.


@Dennis_Knutson wrote:
You say you want a chart. Do you really mean you want a table? There are several examples of saving data in the DAQmx examples. Simplest perhaps is to use the Write to Measurement File function.

 

0 Kudos
Message 5 of 13
(4,028 Views)

But the examples I found, which can acquire data, is in a graph not in a table. I need to do some further calibration about the data. I need exactly values so that I can convert voltages from DAQmx card into water content. So I want the data collected in a table like excel.

0 Kudos
Message 6 of 13
(4,027 Views)
Did you try anything? A table is simply a 2D string array. Use a string conversion function. Saving the data is exactly the same. The display (table or graph) is irrelevant.
0 Kudos
Message 7 of 13
(4,024 Views)

Hi 

 

Refer this attached vi and modify as per your requirement.

 

Regards,

Bijay

0 Kudos
Message 8 of 13
(4,018 Views)

Thank you so much!

But my Labview version is 8.5.1. Your version is newer than me, so I can't open the file. How can I convert it into my version. Sorry I am new to Labview.

 

Thanks a lot. 


Bijay wrote:

Hi 

 

Refer this attached vi and modify as per your requirement.

 

Regards,

Bijay


 

0 Kudos
Message 9 of 13
(4,006 Views)