LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ to array for comparison

I had a previous post help with with some other issue but since running in production I realized I must change the program entirely. I have a DAQ collecting on all 8 channels. I am collecting 1 sample a second for 5 minutes. I then need to do some comparison on these values. Take the high from channel 0 and then compare to the high from channel 1 then do some math, and do the same things for 2+3, 4+5 and so on. I have been trying for quite some times to figure out how to write the daq data into an array and use the information that way but I can't nail it down. I have tried all sorts of searches and haven't found my solution. Currently I have a 5min timed loop with a for loop inside and shift registers building an array but cannot figure out how to connect them properly. Any help would be greatly appreciated.
0 Kudos
Message 1 of 3
(2,684 Views)

Hi again icemaker

 

So you are trying to build an array from the values you acquire one and one? In that case here is one example (just illustrates the insert into array):

 

add array.PNG

 

You could also use the Collector Express VI.

 

Best Regards

 

David

NISW

0 Kudos
Message 2 of 3
(2,676 Views)

Alright, so I had something similar and changed it using your example above. What type of dynamic conversion do I use, I have 1d array of automatic but I don't think it is correct type. Even more important I have no idea how to take data from my array and compare it. Is this a multi-dimentional array?

 

arraybuilder.png

0 Kudos
Message 3 of 3
(2,670 Views)