LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

find the most common number and display on CVI program

Hi NI,

 

Can advice how to do the below task using CVI software

 

1) Read 10 data(range only 1 to 10) (throught serial com-bluetooth drvice) 

2) Check the 10 data receive and get the most common number number occur and step 3

3) Display on the CVI display the most common number.

 

Thanks

SB

0 Kudos
Message 1 of 4
(3,243 Views)

A very general guidance on how to address this problem could be:

 

  1. Use RS232 library or VISA to read from the device. Accumulate measures in a array
  2. Sort the array and count values. If numbers are floating point you will need to design a rule to decide how close numbers can be to be counted in the same group
  3. ... (I hope you don't need help on this! Smiley Wink )


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,240 Views)

Any sample CVI sort arry doc for beginner to share?

0 Kudos
Message 3 of 4
(3,211 Views)

here is one

0 Kudos
Message 4 of 4
(3,208 Views)