LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to label Y axis values on a graph?

HI,
I have a histogram graph and I need to make labels on the Y axis that reflect how many lines hit that line. So that if I have 10 1's then on the amplitude line I would have a digital indicator showing 10 next to the 1? And same thing say 15 for the 2's if thats the number of lines that hit the 2 on the Y axis. Basically what do I use, a property of the graph or do I manually insert digital indicators on the front panel?
0 Kudos
Message 1 of 2
(2,595 Views)
The General Histogram VI allows for min and max tolerances and will output the number of hits outside of that range. You could use that VI in a while loop and wire the out-of-range values to shift registers, along with an "Add" VI, to create a running sum. You'd need to do this for your X & Y axis.
Also, for an example, the Running Histogram Example shows a use of the General Historgram vi output, buts converts the out-of-range values to % versus a running sum.
However, as you also thought, using simple indicators along with the "In Range and Coerce" VI (Functions > Comparison) wired with the graph data input (X and Y separately) is another method that would fit just as well, and may be easier to implement.
I believe either way will work fine. Good luck with it, Do
ug
0 Kudos
Message 2 of 2
(2,595 Views)