LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intensity chart arrays & loop tunnels

I'd like to create an intensity chart from data relating time difference between two triggering devices to energy. What is the best way to create the 2d array for the intensity chart?

I've tried to send the data out of the while loop, enabling indexing to create arrays for each data source (which I then hoped to combine using a build array function to make the 2d array), but for some reason, no data comes out of the tunnels. I can't create a 2d array and increment points by index because the time data is inconsistent in sign, and would create problems with index.

Any suggestions as to how to create the 2d array, or even just why no data is coming out of the tunnel?

Thanks,
Mike Sarahan
0 Kudos
Message 1 of 2
(2,554 Views)
I worked out a solution - if anyone is curious. Since the time values themselves don't matter, only their relation to one another, I added a sufficiently large number to make them all positive and used them as indices for the array. I rounded the energy values for the other set of indices for the array. The VI initializes a 2d array of arbitrary size, reads the value at a given set of indices, and then increments the value at that set. Everything's done inside the loop except for initializing the array.

I'm still curious as to why no data goes out of the loop tunnel, if anyone can answer that, I'd be appreciative.
0 Kudos
Message 2 of 2
(2,554 Views)