Jump to content

Line Graph in LabVIEW with Repeating X Values


JohnLV

Recommended Posts

Posted

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

Posted

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.

Posted

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, ...).

post-107-0-04843700-1324936711_thumb.png

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

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.