Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Histogram bin settings and display

I am having trouble setting up the histogram object.  Can you explain what the bin settings are and what they are used for.  I think I understand the number of bins, but what is the minimum and maximum for?  Also, how do you display a histogram.  I see that it does not have a display dialog box but don't understand what help means by saying you can reference the output signals in expressions.
 
Thanks
0 Kudos
Message 1 of 3
(5,862 Views)
You can first run the example objecthistogrm2 in Lookout 6.x\Examples\Objects\. It shows how the object works and how to build a graph with the calculated data.
 
The object itself doesn't have the display. But you can see in the example, it uses expression as Bar on panel to display the data.
 
The bin is used to store the singal data. For example, the Number is 8, minimun is 10, maximum is 90 in the example. It means there are 10 bins. The data below 10 will be put in bin0, the data bigger than 90 will be put in bin9. And the data range from 10 to 90 will be divided into "Number", here number is 8. So each bin's range is 10. So 15 will be put in bin1, 25 will be put in bin2... 85 will be put in bin8.  I'm sorry that the help file doesn't say much about the bin parameter.
 
Categorize "All samples" will store and calculate all the data. If you select "Most recent", such as 100, then the last 100 data will be calculated, only 100 data will be left in bins.
 
The datamember fx is the number of the data in binx.  rfx is the percentage of the data in binx.
 
Let me know if it's clear.
 
 
Ryan Shi
National Instruments
0 Kudos
Message 2 of 3
(5,854 Views)
Thanks, that is much clearer.  Honestly, I did not even know the examples were there.  It would be great if they were linked to the help page.  I think I am good to go now.  Thanks again.
0 Kudos
Message 3 of 3
(5,851 Views)