From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-12-2020 01:37 PM
Hi!
Is there any way to set the number of major ticks in a waveform graph to a fixed value (i.e. 10 major thicks : 0, 10, 20, 30,...., 100) ?
Any idea?
Thanks in advance
Solved! Go to Solution.
03-12-2020 02:53 PM - edited 03-12-2020 02:55 PM
First, you'll need to make sure the graph is big enough to be able to handle that many ticks.
Then you can programmatically set the increment between ticks. But you aren't going to be able to add more than will fit.
(This looks at all range values, but you could set the property node to just XScale.Increment if you wanted to.)
03-13-2020 10:21 AM
Hi!
Thanks for your reply.ùMay you share this VI?
Thanks in advance
03-13-2020 10:44 AM
It's a snippet. Save the PNG file to your desktop, drag file into a block diagram (assuming you have LV 2019).
It is easy to create. The Xscale property is way down on the list when you go to select the property in the property node.
03-13-2020 12:25 PM
Hi!
Thanks for your reply.
It works but I don't understand how it works.
I'm a teacher.
I must know how a program works to teach it to my students.
For example I don't understand why Xscale.Range there is two time or what is "increment" and so on...
May you help me?
Thanks in advance.
P.S. Thanks for snippet are very useful.
03-13-2020 12:55 PM
You can open up context help and hover over that property node and look up the items. You may need to drill down into detailed help.
What do you mean by "I don't understand why Xscale.Range there is two time"?
Do you man that there is two different properties with the word "increment" in them? Increment is the interval between the numbers and the bolder grid lines. Minor increment is the interval between the fainter grid lines.
03-14-2020 12:42 PM
Ok. Now I've understand all.
Your solution works fine !
Thanks