LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the mode (a kind of statistic parameter) correctly?

I tried to use the 'mode' vi under LabVIEW6.1 to get the mode of an array. But the result obviously wrong. It returned a number that never appeared in the array. And the vi ask me to provide interval, but how can an array of numbers has an interval? Who can tell me how can I get the mode correctly? My array is attached with this question. I'm working on my thesis, the problem is urgent to me. Thanks!
0 Kudos
Message 1 of 3
(2,481 Views)
I couldn't find any real mode function in LabVIEW either, so I wrote this VI.
0 Kudos
Message 2 of 3
(2,481 Views)
Thank you! That's really a good solution. It's very helpful to me. And it's better to use this mode vi to replace the existing one in newer version of LabVIEW. If I did not check the value of it, my program must be wrong. And the result of the existing mode vi does not match the definition on the vi's help page. It says "mode is the value that occurs most often in a sequence of values." If only see the help file, programmers would run vis wrongly. Thank you for helping me!
0 Kudos
Message 3 of 3
(2,481 Views)