LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW - chart problem

Hi,
Has anyone encountered such a problem? LabVIEW does not display one major grid line. The other grid lines are displayed correctly. Resizing and moving the window do not fix the chart glitch 😞
Thank you for help
Daniel
0 Kudos
Message 1 of 9
(2,468 Views)

Hi DanBor2248,

 

could you share VI? Otherwise, it's hard to help.

 

_______________________________________________________________

-Patrik
CLA || CTA
If it helps - Kudo it, if it answers - Mark As Solution
0 Kudos
Message 2 of 9
(2,465 Views)
0 Kudos
Message 3 of 9
(2,463 Views)

Thanks,

 

That's interesting, seems really like a glitch. When the tick should be on the border of the chart, then it's skipped - I reproduced the same behavior on NXG and classic styles of chart. It gets "resolved" when your major tick is actually behind the corner -  that you have the scale form 0 to 20 and choose increment 3, then none of them is skipped and tick on 21 will display correctly.

 

Nice catch 🙂 

 

_______________________________________________________________

-Patrik
CLA || CTA
If it helps - Kudo it, if it answers - Mark As Solution
0 Kudos
Message 4 of 9
(2,429 Views)

Thank you for the apt hint. If I cannot solve the problem otherwise, I will use this solution (X-axis to 21). Only at the beginning the chart looks inconsequently in the marked place on the picture.

0 Kudos
Message 5 of 9
(2,381 Views)

The markers are updated to include the 20-marker if you e.g. move the chart afterwards. I made a simpler test VI and added a move afterwards, which "fixes" it. But there has to be a wait after the last update of the chart or the move will happen too soon. The graph seems to still be updating for some time and in this case I need to put in at least 50 or so ms.

 

I know I have had this issue before but cannot remember if I ever found a proper solution for it. I thought this was the same issue but that fix did not help (or I did not do it right).

 

In your VI, and mine, you can also try and resize the chart by a pixel and all of a sudden you get a scale marker increment of 1 instead of 2.

Certified LabVIEW Architect
Message 6 of 9
(2,344 Views)

Hi,

 

I have tried many settings. It turns out that displaying the grid works fine with XScale.Maximum = 19.98. Please test if this is correct on other LV versions. For another chart scaled in minutes 0-10, the XScale.Maximum value was = 9.99. In the attached VI, the entry of 19.99 did not have a similar effect.

It's a kind of magic...

 

Best regards

0 Kudos
Message 7 of 9
(2,333 Views)

That works in LV2021.

 

I remember now what I did. You can just set another scale increment and then set it back to the correct one, after the data is written. That of course doesn't work well if you are updating the chart a lot.

 

I tried setting 20,02, but that made it even worse. Marker missing at 20 and then incorrect spacing of markers:

thols_0-1634019153774.png

 

Certified LabVIEW Architect
0 Kudos
Message 8 of 9
(2,309 Views)

Thanks for the verification.

Best regards

0 Kudos
Message 9 of 9
(2,306 Views)