Changes between Version 20 and Version 21 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti
- Timestamp:
- 07/18/22 08:46:38 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatMulti
v20 v21 9 9 int StartRepeatMulti(uint32 interval, struct mnbd_multi_rep_counters_struct* counters = NULL); 10 10 }}} 11 11 12 12 13 == Parameters == … … 54 55 55 56 // Counter input may be read in MNBD_EVENT(MultiRcv) - printf("cnt1 %d\r\n", g_multi_counters.cnt1); 57 }}} 58 59 Example of reader counter data: 60 61 {{{ 62 63 int g_nPrevCnt[4] = { 0, 0, 0, 0 } 64 int current_cycle_counts = 0; 65 66 MNBD_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 56 87 }}} 57 88