LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Multiplot XY graph w/ Data Retention

Hey All,

 

I have had trouble creating a graph that gives me a few things, I need the following:

 

  • XY graph of strain (y) vs. displacement (x)
  • I need multiple, independent datasets (approximately 5 total) on the same XY graph.  Each set will be have a unique strain value, but will share the same displacement (x) value.  For example:  (x, y1) ; (x, y2); (x, y3)....and so on
  • These data points will "float" as the strain/displacement values change over time.  However, I need the past values to be retained/shown on the plot.  Essentially, I'd like to see the path that each data point traces out over time.

The first image shown below should give a better idea of what I am trying to do.

 

I have attempted this multiple ways.  The first attempt created multiple bundles (x,y) of displacement and strain pairs.  This resulted in a plot that connected the values as opposed to letting them float independently.  I also cannot find a way to have the graph retain past values.  Perhaps I need shift registers on each bundle?

 

The second attempt used an express VI, which I usually try to avoid.  However, this VI allowed to retain values using a simple boolean.  The problem with this setup is, again, I could not isolate the individual points from one another, they are all connected.  The second and third images below show the code I have attempted.  I think I am close, the main issue is isolating the data sets from one another.

 

Any help appreciated, thanks!

 

Desired display:

XY.JPG

 

 

 

 

 

Code Attempts:

 

 

Non express.JPG

 

 

 

 

 

 

Express Attempt.JPG

 

 

 

0 Kudos
Message 1 of 3
(2,772 Views)

Got to the bottom of the issue, dealt with a simple change in the To-DDT conversion function.  Apologies for the double post

0 Kudos
Message 2 of 3
(2,756 Views)

Please make it a habit to attach the actual VI instead of truncated oversized images that only tell 20% of the story. If your image show any express VI (to ddt, xy graph, etc.) an image cannot show the configuration.

 

Code still looks highly convoluted.  Why are there local variables? Do you know that index array is resizable? Do you know that you often don't need to wire indices of index array? Have you tried to use complex arrays for xy data? It makes the data structures significantly simpler. That "bundle...bundle..cluster to array" dance seems unusual, to say the least. I am sure there are better ways.

0 Kudos
Message 3 of 3
(2,733 Views)