09-04-2018 02:02 PM
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.
Solved! Go to Solution.
09-04-2018 02:06 PM
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?
09-04-2018 02:24 PM
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.)
09-05-2018 10:21 AM
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.
09-05-2018 11:00 AM - edited 09-05-2018 11:06 AM
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)
09-05-2018 11:07 AM - edited 09-05-2018 11:10 AM
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
09-05-2018 11:16 AM
@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.