I need some URGENT help. I am collecting data from 4 channels simultaneously ( or nearly simulataneously ).I need to extract the 4 sets of data for EACH iteration and attach to the previous set of data i.e
if my FIRST ITIRATION DATA FOR THE 4 CHANNELS IS
CHANNEL 1 DATA : 0.1 0.2 0.3 0.4... 0.5 CHANNEL 2 DATA : 1 2 3 4... 5 CHANNEL 3 DATA : 11 22 33 44... 55 cHANNEL 4 DATA : 111 222 333 444... 555
and my second iternation data is
CHANNEL 1 DATA : 0.5 0.6 0.7 0.8... 0.9 CHANNEL 2 DATA : 5 6 7 8... 9 CHANNEL 3 DATA : 55 66 77 88... 99 cHANNEL 4 DATA : 555 666 777 888... 999
Then I want to ad d the results of the first iteration to that of the second iteration to corresponding channels
In this fashion I want to add the data for a total of 50 iternations. I have attached my code. IN this code i collect the data in a while loop for all 4 channels. I have extracted the vaules for the 4 iterations . However I want to write code so that I dont have to extract each and every iteration set.
First you should transpose the two arrays. Then build out of both a new array with the "build array"-function. Here you must select the inputs to be attached (via context menue). Then transpose the output again. You will get the desired 2-dimensional array. That's it.
I have attached a simple VI that generates a a set of random numbers and appends the data together and puts it into a 2D array.
If you already have a 2D array to start with, then you will have to split it and then append data to the 1D array as shown in the attached VI. You can then combine the 1D arrays