| Version 1 (modified by , 6 years ago) ( diff ) |
|---|
DLCRepeatMultiIncludeCellWts
Enable/Disable repeat multi when used with DLC to include provide individual cell weights to app
int DLCRepeatMultiIncludeCellWts(int dlcCard, bool enable);
Parameters
- dlcCard - card number of DLC card
- enable - true to set app to receive cell weights, false for no cell weights
Return Value
- Returns the result - OK success
Remarks
Examples
AllocateRepeatMultiCellWtMemory(GetNumScales());
if(DLCRepeatMultiIncludeCellWts(1, true) != OK)
{
DEBUG_MSG("Error set multi repeat cell wts\r\n");
}
MnBdSetEvent(MNBD_REQ_REP_MULTI, MnBdEventMultiRcv);
if(StartRepeatMulti(100) == OK)
DisplayText(0, 0, "Wt and I/O 10 times per second");
...
MNBD_EVENT(MultiRcv)
{
if(repeat_multi_record == 0) // Scale weights and I/O status
{
...
}
else if(repeat_multi_record > 0x30 && repeat_multi_record < 0x34) // Cells weights for scale
{
int n = repeat_multi_record - 0x31;
DEBUG_MSG("Cell wts for scale %d %6.0f %6.0f %6.0f %6.0f\r\n", n + 1,
REPEAT_MULTI_CELL_WT(n, 0), REPEAT_MULTI_CELL_WT(n, 1), REPEAT_MULTI_CELL_WT(n, 2), REPEAT_MULTI_CELL_WT(n, 3));
}
return 0;
}
The above example will output cell weights such as:
Cell wts for scale 1 3665 1335 7289 12839 Cell wts for scale 2 14250 11641 -0 0 Cell wts for scale 3 0 0 -0 -0 Cell wts for scale 1 3665 1335 7288 12838 Cell wts for scale 2 14250 11641 0 0 Cell wts for scale 3 0 0 -0 -0 Cell wts for scale 1 3665 1336 7288 12838 Cell wts for scale 2 14249 11641 -0 0 Cell wts for scale 3 0 0 -0 -0 Cell wts for scale 1 3665 1336 7288 12838 Cell wts for scale 2 14250 11642 0 0 Cell wts for scale 3 -0 0 -0 -0
See Also
Note:
See TracWiki
for help on using the wiki.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)