LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Collect all data

Hello,

 

I connected a pressure sensor to my NI DAQ. I measures the voltage values and multipy those with a coefficient to obtain pressure values. I have no problem about these steps.

Now I set my sample ead value to 10 with continous sample. 

When i start the program, it collects 10 last data of the tests and placed it inside the array but i want to collect all data from the beginning to the end of the test. How can i provide all these datas inside an array ?

 

 

0 Kudos
Message 1 of 2
(2,499 Views)

You can use a shift register and Build Array to keep adding data to an array.  This generally isn't a good idea since you will be constantly causing memory allocations.  And if you run for any decent amound of time, you will run out of memory.

 

I would recommend using the logging to TDMS function in the DAQ assistant to stream your data to a TDMS file.  You can later read that file to get all of your data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,489 Views)