LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

All about Arrays

Hey there,

I've coded a labview application for an A/D board that I am using that records data to a spreadsheet.

The issue is that I want to code into that same application a temperature monitor that doesn't sample as fast and have that stored into the same spreadsheet.

I can get them to store into different ones - but I cannot marry the data into one spreadsheet.

I am using a 1-dim array for the temperature data and a 2dim array for the voltage readings. The issue is two fold:

- How can I effectively add the temperature columns into the 2 dim voltage array?
- Since the A/D board runs faster, how can I "fill in" the gaps since the A/D array will have many more readings?

Thanks!
0 Kudos
Message 1 of 2
(2,635 Views)
You just need to pad your data so they match the faster speed.
 
Easiest would be if you built the 2D array with three columns and always read the temperature via a local variable. It will retain the stale value until it gets updated.
 
If both reading happen in the same loop and the temperature reading is in a case structure that is only active ocasionally, you can keep the temperature in a shift register that gets updated whenever the temerature is read.
 
If you want to merge the data of the two existing arrays later, you just need to do something similar in a loop. Are the two sampling rates an integer multiple of each other?
 
0 Kudos
Message 2 of 2
(2,622 Views)