LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY Graph - ascending and descending values in X-axis?

I an working on an application to plot power levels (Y-axis) -vs- phase angle (X-axis); is there any way to set the X-axis scale to allow for ascending then descending values? For example, the X-axis ideally sould start at zero, midpoint should be 180, and the endpoint should be -180 (0,90,180,-90, -180).
I can set it up for a range of -180 to 180, but the customer will sarting at the zero point, so that doesn't do me much good.
I'm using Labview 6.1.
0 Kudos
Message 1 of 7
(5,319 Views)
I don't see a function that would allow such a thing. But may be a simple work around could be to write your own custom scale over the existing ascending scale. Just hide the original, after setting the proper distance between ticks (disable autoscale, set the max to 360, then type 45 at the first marker). Then change the style to mask the text markers, and set the whole control to disable state. Write your own scale...
Does that help ?
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 7
(5,314 Views)
OK, I finally figured it out.... I simply set the Min and Max range (propety node >XScale>XScale.minimum = -180, and XScale.Maximum = +180), then used the property node > Xscale>"XScale.Flipped" to reverse the range.
0 Kudos
Message 3 of 7
(5,314 Views)
Ignore my last comment - I realized after I submitted it that it's not the solution I was looking for(too many things going on at once - I got distracted).
0 Kudos
Message 4 of 7
(5,314 Views)
This happens sometimes : late in the night or early in the morning, specially on the same day :-))
CC
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 7
(5,314 Views)
Could you post a copy of this graphing vi. I have a similar problem. I am heating and then cooling a sample and then graphing temperature vs expansion. The expansion values range from 440-460 and the temperature range (y-axis) is 80-600.
 
Thanks
Mark
Mark Mutton
Electrical Engineer
0 Kudos
Message 6 of 7
(5,206 Views)
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.
0 Kudos
Message 7 of 7
(5,203 Views)