03-15-2013 11:18 AM
Hello Zepii,
In attachment you can find the difference between both:
- The brown wire is an array of clusters (that contain 2 double elements)
- The pink wire is an array of clusters (that contain 2 double arrays)
03-15-2013 11:37 AM
Hi,
Thanks, but I'm aware of this, as I use that help function everyday 😄 (And even in the last post).
I've found a simple solution, here is it :
Special thanks to tst for his help.
I'll mark my thread will VI as the solution to the problem, in which I quoted you both for your help.
Cheers,
Sébastien
03-15-2013 11:52 AM
I just posted it to show why the colours are different and support tst's statement.
Full credit goes to tst.
I just wrote some text 😉
03-16-2013 12:58 PM
Like I said, it's very important to understand what the data types actually represent. If you use the CH window to hover over the terminal of the XY graph it shows you how single plots and multiple plots are represented. That would have told you that the array of clusters is actually multiple plots which is why the four points have different colors and are not connected.
03-16-2013 01:12 PM - edited 03-16-2013 01:14 PM
Also, you still have a lot of duplication in your code. You could make it much cleaner by calling the repeated code in a loop or a subVI. You might wish to look at some of these tutorials.
03-18-2013 06:13 AM
Hi,
Thank you for your tips.
I still have a "stupid" problem imo.
I would like to plot the XY graph 2 and Fly Trajectory (Plot) on the same graph, but I'm just not able to. I tried to merge them in several ways, but it's not working.
I know there is a probably a dimension problem of my array compared to the other one, but what I don't understand is why I can plot them separatly on the same kind of graph, even invert the wires but not merge them easily to show me the both results on 1?
I already searched on google and on LabView forum, but don't have found anything yet.
Is there an easy way to do it?
Should I open a new topic or not for this, as it's not really the same problem that I had at start and which is just a small problem compared to the original one, I hope.
Thank you,
Sébastien
03-18-2013 06:34 AM
You don't say what the actual problem is, but try right clicking the Build Array node and checking the concatenate option and read the help to see what it does. If that doesn't help, start a new thread, but post actual code and explain exactly what the problem is.
03-18-2013 06:48 AM
Hi,
Thank you for that answer, but I already tried to concatenate in several ways, but I'm not able to do anything.
I opened a new topic : http://forums.ni.com/t5/LabVIEW/Q-How-to-merge-2-differents-XY-Graph/td-p/2353828
Thank you for your help once again,
Sébastien