Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/DLCRepeatMultiIncludeCellWts


Ignore:
Timestamp:
03/16/20 15:04:57 (5 years ago)
Author:
Don Wilson
Comment:

--

Legend:

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

    v1 v2  
    2222{{{
    2323
    24 AllocateRepeatMultiCellWtMemory(GetNumScales());
     24void IndStartup(void)
     25{
     26   MnBdStartup();
    2527
    26 if(DLCRepeatMultiIncludeCellWts(1, true) != OK)
    27 {
    28    DEBUG_MSG("Error set multi repeat cell wts\r\n");
     28   AllocateRepeatMultiCellWtMemory(GetNumScales());
     29
     30   if(DLCRepeatMultiIncludeCellWts(1, true) != OK)
     31   {
     32     DEBUG_MSG("Error set multi repeat cell wts\r\n");
     33   }
     34
     35   MnBdSetEvent(MNBD_REQ_REP_MULTI, MnBdEventMultiRcv);
     36
     37   if(StartRepeatMulti(100) == OK)
     38    DisplayText(0, 0, "Wt and I/O 10 times per second");
    2939}
    3040
    31 MnBdSetEvent(MNBD_REQ_REP_MULTI, MnBdEventMultiRcv);
     41void IndShutdown(void)
     42{
     43   MnBdClearEnent(MNBD_REQ_REP_MULTI);
     44   StopRepeatMulti();
    3245
    33 if(StartRepeatMulti(100) == OK)
    34     DisplayText(0, 0, "Wt and I/O 10 times per second");
    35 
    36 
    37 ...
     46   DeallocateRepeatMultiCellWtMemory();
     47}
    3848
    3949MNBD_EVENT(MultiRcv)
     
    4151  if(repeat_multi_record == 0) // Scale weights and I/O status
    4252  {
    43      ...
     53     // Do typical processing for scale weights
    4454  }
    4555  else if(repeat_multi_record > 0x30 && repeat_multi_record < 0x34)  // Cells weights for scale