cancel
Showing results for 
Search instead for 
Did you mean: 

XYGraph does not show some points. Why?

SOLVED
murchak
Active Participant
Solved!

XYGraph does not show some points. Why?

Message contains a hyperlink Message contains an image Message contains an attachment

I have a very simple code to plot error bars (idea is not mine).

However, points are missing from my plot. Why? The second line is missing.

 

I have attached pictures of the BD, FP, and the actual code. I had posted this before, but never got an answer. (https://forums.ni.com/t5/LabVIEW/Plot-does-not-show-2nd-point/td-p/2362244)

Sorry for posting again. 

 

This is driving me insane. The code is just way too simple and I don't see where and how points could be missing.

 

 

BD.jpg

FP.jpg

 

 

 

5 REPLIES 5
altenbach
Knight of NI

Re: XYGraph does not show some points. Why?

The line at x=2 shows just fine in LabVIEW 2013.

RavensFan
Knight of NI
Solution

Re: XYGraph does not show some points. Why?

I'd say it's a weird bug.  Looks like you are in LV 2011.  I see it in LV 2012 SP1.

 

If you set the point style to something besides None, the line then shows up.  You can set it to a very small point style that hardly shows up against the line.

murchak
Active Participant

Re: XYGraph does not show some points. Why?

That is really interesting. Can someone try this in LabVIEW 2011? I am really curious if anyone else will face this problem with their 2011 version.

 

I spoke with NI today to possibly upgrade my 2011 DS to the latest version which would cost $2600.

I wonder if I can call them again for a free upgrade since my LabVIEW 2011 must have issues. (Of course that won't happen).

GerdW
Knight of NI

Re: XYGraph does not show some points. Why?

Message contains an image

Hi murchak,

 

I tested your VI on LV2011SP1 and see the same display bug as you do.

 

But I also found a workaround:

- Changing the line width alone doesn't help.

- Changing the point style does help showing the line!

So you need to change the plot style to show points too, even the smallest point is sufficient (and doesn't get recognized by the user)!.

 

See exported simplified image:

check.png

(I used bigger points for demonstration…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Highlighted
murchak
Active Participant

Re: XYGraph does not show some points. Why?

Thanks GerdW.


RavensFan already suggested this. It works now.