LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously build and display 2D data

Solved!
Go to solution

I have a 2D profile data set and i'm able to display one profile at a time just fine.  What i'd like to do is buffer the data set to show (Y) number of scans of an object at (X) length and (Z) color ramp.  I can't figure out how to build a contour plot, any help would be greatly appreciated.

 

0 Kudos
Message 1 of 7
(3,077 Views)

I'm not sure exactly what you are after, but the intensity graph or chart might work for you.

 

Could you post a picture of what you want the graph to look like, and we can tell you how hard it will be to create it?

0 Kudos
Message 2 of 7
(3,076 Views)

Yes, you are mixing in quite a few very ambiguous words ("2D profile", "contour plot", "continuously", "object", etc.)

 

Please attach a simplified VI containing some typical data for one profile and how you expect it to look like for a set of profiles. Should they be averaged, appended, overlayed, etc.)

0 Kudos
Message 3 of 7
(3,061 Views)

Here is a simplified VI that displays (1) profile per iteration of the For loop.  I'd like to create a plot where my (Y) axis is the number of profiles, the (X) axis is the individual point spacing of the data and a color ramp that represents the (Z) height data.

 

I can't seem to figure out how to store multiple profiles to build the Intensity plot.

0 Kudos
Message 4 of 7
(3,015 Views)
Solution
Accepted by topic author coolhandLV7

To retain data between iterations, you need a shift register. Here is a simple example. Modify as needed.

(Note that the intensity graph is set to "transpose")

 

(Of course this example is probably too simple, because eventually you'll run out of memory. :D. If you know that there will only 10 profiles (you originally used a FOR loop with 10 iterations!), you could initialize the full 2D array into the shift register and replace rows as new profiles are acquired)

 

 

0 Kudos
Message 5 of 7
(3,009 Views)

Thanks I was able to do this by changing the tunnel mode also.  The real problem was the data format my "real" program is all out of whack so i need to clean up the format so that it makes sense.

 

Thanks

0 Kudos
Message 6 of 7
(3,006 Views)

@coolhandLV7 wrote:

Thanks I was able to do this by changing the tunnel mode also. 


A shift register is not really a "tunnel". If you don't need to see the data as it builds, you can of course create the 2D array at an auto-indexing output tunnel instead. I was under the impression that you want to see the graph updated live, especially since your loop time was 1000ms.

0 Kudos
Message 7 of 7
(3,000 Views)