01-06-2015 01:35 PM
Hey All,
I have had trouble creating a graph that gives me a few things, I need the following:
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:
Code Attempts:
01-06-2015 02:31 PM
Got to the bottom of the issue, dealt with a simple change in the To-DDT conversion function. Apologies for the double post
01-06-2015 04:12 PM - edited 01-06-2015 04:14 PM
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.