I don't have a particular solution to the question you asked, but are you sure that's the question that needs to be answered?
I ask because it seems like a strange use of an x-y relationship. Generally when I'm plotting an x-y relationship, it seems to make a lot more sense to let the X-axis simply be in the normal order.
Are you trying to make the x-axis match the order in which the data points are generated in your test? If so, is that primarily for the aesthetics of the line that gets plotted on the x-y graph? Might the issue go away if you did one of the following instead?
1. Set the plot properties to simply show the data points without a line connecting them. This still clearly shows the x-y relationship at all the conditions that were actually tested.
2. Sort the data by x-value before plotting. (Method: take your x-array and y-array and put them into an array of clusters, where each cluster element holds an x value and a y value, being sure the x-value is first in the cluster order. Sort the array of clusters then feed to the x-y graph.)
3. Collect the data in a different order.
Are any of these options viable?
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.