JohnLV Posted December 26, 2011 Report Share Posted December 26, 2011 Hi Everyone, Season Greetings to you all... I am trying to create a Line Graph in LabVIEW that will plot with repeating X values. Basically, my data looks like X Y 0 1 1 4 2 2 3 43 4 43.5 5 55.9 6 68.3 7 80.7 8 93.1 9 105.5 10 8 0 7 1 5 2 3 3 1 4 -1 5 -3 6 -5 7 -7 8 -9 9 -11 10 -13 The Waveform Graph/ Chart will display the Y axis correctly, so the user gets the shape, but the X axis is just in numerical order which is not desired. If i use the XY graph, the line turns back on itself because the X Values is repeating... I have tried the X Scale marker values property node, but it did not display correctly. Sorting X Values is not an option for my problem. I have attached a Excel Sheet and a VI (LabVIEW 8.2) for your reference. Thanks and Regards John XY Graph.zip Quote Link to comment
drjdpowell Posted December 26, 2011 Report Share Posted December 26, 2011 What is your question? If it is the line drawn back from (10 8) back to (0 7) that you don't want, then adding an extra point with a Y value of "NaN" (Not a Number) between them will eliminate the line. Quote Link to comment
todd Posted December 26, 2011 Report Share Posted December 26, 2011 Based on your excel file, you want a graph like the bottom one in the attached image, but with more ticks on the x-axis (... 8, 9, 10, 0, 1, 2, ...). Apparently, you still have to use a workaround. See the non-trivial ideas in the links from Erik's comment in this idea: http://forums.ni.com...es/idi-p/921601 Quote Link to comment
JohnLV Posted January 27, 2012 Author Report Share Posted January 27, 2012 Thanks drjdpowell and todd for your support. But still the links you have mentioned is not helping me to solve the issue.. Quote Link to comment
todd Posted January 27, 2012 Report Share Posted January 27, 2012 I can't find the post, right now, but someone showed how to use the in-graph picture. Here's my copy of their VI. use picture to show arbitrary x axis labels.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.