Changes between Version 20 and Version 21 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti


Ignore:
Timestamp:
07/18/22 08:46:38 (2 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti

    v20 v21  
    99int StartRepeatMulti(uint32 interval, struct mnbd_multi_rep_counters_struct* counters = NULL);
    1010}}}
     11
    1112
    1213== Parameters ==
     
    5455
    5556// Counter input may be read in MNBD_EVENT(MultiRcv) - printf("cnt1 %d\r\n", g_multi_counters.cnt1);
     57}}}
     58
     59Example of reader counter data:
     60
     61{{{
     62
     63int g_nPrevCnt[4] = { 0, 0, 0, 0 }
     64int current_cycle_counts = 0;
     65
     66MNBD_EVENT(MultiRcv)
     67{
     68   int n;
     69
     70   if(record == 0)
     71   {
     72      for(n = 0; n < GetNumScales(); n++)
     73      {
     74          // Update scale weight display
     75      }
     76
     77      if(g_multi_counters.cnt1 != g_nPrevCnt[0])
     78      {
     79          current_cycle_counts += (g_multi_counters.cnt1 - g_nPrevCnt[0]);
     80         
     81          g_nPrevCnt[0] = g_multi_counters.cnt1;
     82      }
     83   }
     84}
     85
     86
    5687}}}
    5788