LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In range and coerce

Solved!
Go to solution

@ TiTou

 

yes but in this case I need % on histogram, not values

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 11 of 20
(1,363 Views)

Do you need help from us to calculate a percentage or do you think you can do it?

 

Hint, in the example above the ploted data is H(x).


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 12 of 20
(1,361 Views)

Hi hlod,

 

as it seems impossible for you to calculate percentages from the ouputs of the histogram function I will show you a picture:

check.png

Homer Simpson would say Doh!

 

And no, you don't need InRangeAndCoerce!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 20
(1,357 Views)

First thanks to all your help.

 

I try like this, I think it's ok, but I don't know why "amplitude" not showing beetween 40-60;

 

For example if "number of runs" is set to 1, amplitude must be at 0- 50 or 50-100 and not 0-40 or 60-100, see on picture:

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 14 of 20
(1,351 Views)

Hi hlod,

 

it's just a matter of the plot properties. Play around with them and you will see...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 20
(1,343 Views)

Don't understand what can I chance at properties of plot. I think it's problem somewhere else not at properties;

 

If I set "numbers of set" =1

 

amplitude must be always 50% (0-50 or 50-100)  and count: 100

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 16 of 20
(1,344 Views)

Right clic on the graph then play with X-scale properties :

 

Clipboard01.png


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 17 of 20
(1,341 Views)

Hi hlod,

 

- When you only have one sample in your data then I would expect 100% in one range and 0% in the other...

 

- Your question about that gap between 40 and 60: The graph is configured to show a bar plot. The bars have a certain width and that width is set to show a gap between the bars. That is the gap you see. To remove the gap you have to change the width of the bars - which is a property of the plot as I said before. Change the plot properties to have the nice plot you expect to have!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 18 of 20
(1,339 Views)

Well I don't see anywhere where I can change this "gap", I try almost everything. (see picture)

 

 

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 19 of 20
(1,328 Views)
Solution
Accepted by hlod

Hi hlod,

 

The easy way:

I would suspect the plot properties are accessable through the plot legend. By choosing the lower right option of "diagram type" you get a bar plot without gaps between the bars...

 

The not-as-easy way:

You know there are property nodes for each item in LabVIEW. There are property nodes for plots too...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 20 of 20
(1,314 Views)