10-08-2021 04:23 AM
10-08-2021 04:55 AM
Hi DanBor2248,
could you share VI? Otherwise, it's hard to help.
10-08-2021 05:01 AM
VI...
10-08-2021 08:53 AM
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 🙂
10-10-2021 03:11 AM
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.
10-11-2021 08:52 AM
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.
10-11-2021 11:12 AM
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
10-12-2021 01:13 AM
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:
10-12-2021 01:17 AM
Thanks for the verification.
Best regards