LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

1)DAQ: multiple channel input into arrays, 2)input raw data and indexes into array

Hello Experts,

I need your assistance once again.

1)I am having problems acquiring data from multiple channels into arrays.  What I want to do is to acquire votlage amplitude from Channel 3 and 4 into array1(battery voltage) and array 2(sensornode output).  At this time it give ms buffer overrun error and the values are completely off.  Please help.

2)After acquiring the raw data, I'd like to input it into a file that displays both the index(or time stamp) and the value acquired.  for instance, index 1, index 2, ... in one column and value 1, value 2 and so on in another column.

Please see attached vi for illustration.  Please advise.

Thanks.

CK
0 Kudos
Message 1 of 2
(2,637 Views)
CK,
 
Most likely you are getting the buffer overrun error for the reasons listed in this KnowledgeBase article. As for your second question, this will just require a bit of programming. Initialize an array the with 2 columns and x rows (where x is the number of samples you have acquired). Then, wire this array into a for loop where you use the Replace Array Subset function to put the data and the iteration count of the loop into the array. Simple as that.
--
Michael P
National Instruments
0 Kudos
Message 2 of 2
(2,619 Views)