Changes between Version 5 and Version 6 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent
- Timestamp:
- 12/13/12 15:31:11 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdSetEvent
v5 v6 17 17 == Examples == 18 18 {{{ 19 SetBackgroundEvent(BackgroundEventComm); 19 ... 20 SetBackgroundEvent(BackgroundEventComm); 20 21 21 MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv);22 MnBdSetEvent(MNBD_REQ_GET_WT, MnBdEventWtRcv); 22 23 23 24 ... … … 34 35 BACKGROUND_EVENT(Comm) 35 36 { 36 37 // Use MnBdRead directly to prevent overhead of MnBdProcess 37 38 38 39 40 41 42 43 44 39 int n; 40 // in case we have more I/O cards than scales change this 41 for(n = 0; n <= GetNumScales(); n++) 42 { 43 // 0 = MNBD_DEV, 1 .. Scales and I/O cards 44 MnBdRead(n); 45 } 45 46 46 47 if(timerReqWeigt.IsExpired() == true) 47 }}}48 {{{49 48 { 50 }}}51 {{{52 49 MnBdRequest(1, MNBD_REQ_GET_WT, NO_WAIT_ACK); 53 }}}54 {{{55 50 } 56 }}} 57 {{{ 58 59 }}} 60 {{{ 61 return 0; 51 return 0; 62 52 } 63 53 }}}