I'm fairly new to labview and working on a VI that I am taking over.
The VI has channels 0-31 (channels 0-3 are being used for a photo sensing diode). In a while loop I am oversampling data at 1000 points/sec and the plan is to average 1000 pts and plot only the average per second. I have a 2D array being piped out of the DAQmx Read (Analog 2D DBL NChan NSamp). I am assuming the 2D array is the channel numbers and the data for each iteration. I figured I'd transpose the array (to get the channel numbers in a row so I can isolate it), take 2 array subsets, one with index 0 and length 1 (I think this is wrong but I figured I would just get the first row and only the first row, but I seem to get an output of a 2D array), and the other with index 4 (since I don't want the photo diode channels) with no set length so it will take all the remaining data values. Then I transposed the latter array so I can take averages of the elements. I am thinking I get a column of averages of channels 4-31.
So now I have a row of my channels from 0-31 and a column of averages from 4-31. The data needs to be thrown back into a 2D array to be written to the file. Currently the output of the DAQmx is split and piped to an index array function that sends the photodiode channels to lock-in amps and straight down to be written to the file.
What can I do? I am confused and obviously don't know enough to complete my task. Any help is greatly appreciated.
🙂