Campuses:
Buffer data enters as 1d array, and is reshaped to 2d array of triggers x (12)integers. The outer For loop indexes one trigger at a time, separating the packet components into arrays. The inner For loop takes the subarray of 8 data integers, indexing one int at a time, converting to a boolean array, which is then converted to an array of 0:1's, which are then added into an array of integers hold the sums. This is done without rearranging the bits by stretcher. Instead, the 256 integers holding the sums are rearranged once before the data leaves the vi.