LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart Max (X-Axis) in Center

I would like to create a chart where the maximum X-Axis value is in the center.  The X-Axis would look like: 0..25..50..25..0.  When I try this with an XY plot I get retrace from 50 back to 0 as expected.  Is there a way in LabVIEW to create a chart like this?  The data should look like a triangle with the X-Axis going from low to high and back to low value.  Attached is my attempt to create the desired chart (LV 8.5)
 
Thanks!
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 1 of 7
(3,473 Views)
Are you trying to display the same data twice? If so you can reverse your data array and concatenate it to the original data. Then plot it on a waveform graph. The X-axis will still show the wrong values though. I don't know of a way to get around that.
0 Kudos
Message 2 of 7
(3,465 Views)
No, different data.  It is a load measurement with the load applied on the down stroke and up stroke.  The X-Axis is position and Y-Axis is force.
Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 3 of 7
(3,463 Views)

Still looking far an answer if one exist.  Attached is an updated VI (LV 8.5) that shows the chart I am looking for with the X-Axis going from 0..50..0. 

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 4 of 7
(3,440 Views)
This is all I could come up with. In "chartMaxCenter.vi" I simply ran the graph to 100 and placed system labels over the 60...70...80...etc to make them read properly. This is OK for diplay, but the data would actually have to be converted if you wanted to use it in any calculations.
 
In "chartMaxCenter2.vi" I built on your idea, but used the XY graph from the classic pallette and customized it to make them fit together a little better. I also replicated the last point of the first graph onto the second graph so the line does not have a break in it.
 
Unless you try to do something with X Controls I think this is as good as it's going to get.
Download All
0 Kudos
Message 5 of 7
(3,433 Views)
Matthew,

I took a Horizontal Fill Slide control and changed it to have text labels. Set the labels to 0..25..50. Then duplicate the control and make the labels ""..25..0. Move the controls so that the max on one overlaps the min on the other and place them on the XY graph with the X axis labels made invisible. Adjust the plot size to match the slider lengths (or the other way around). Plot the graph with the X-axis value 0..99, as you generate the simulated data. Group the graph and sliders so that they move together.

Example attached (LV8.5). I did not color the slide and fill the same as the graph background so you could see what I had done, but you would want to do that for the final version of course.

The text labels for the slider are accessible from property nodes so they could be changed at run time if the number of data points changes.

Lynn
0 Kudos
Message 6 of 7
(3,426 Views)

Thanks all for some unique but workable solutions.  It answers my question that it is not possible to do this within LabVIEW by setting a property.

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
0 Kudos
Message 7 of 7
(3,418 Views)