LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count number of ones in table

Hello,

 i created one table 16x32 each cell is updating 1 byte of data,how to count number of one in all cell,and is it right way to calculate check sum??

 

 

thank you

 

0 Kudos
Message 1 of 4
(4,476 Views)

The simplest way is to call GetTableCellRangeValues with VAL_ENTIRE_TABLE as the range, next summing array elements.

But I don't understand your comment on checksum, so this may not be the more correct method for your actual needs: can you explain what do you mean?



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
(4,469 Views)

how to write code for check sum and size i have 16x32 table..

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

Discussion on checksum follows here



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 4 of 4
(4,432 Views)