wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/StartRepeatWt

StartRepeatWt * DEPRECATED - New apps should use StartRepeatMulti *

Start repeating communications from main board to report weight.

int StartRepeatWt(int scale, uint32 interval = REP_INTV_SAMPLE_RATE);

Parameters

  • scale - scale number
  • interval - update interval in milliseconds

Return Value

  • Returns the result - OK success

Remarks

The scale card must already be opened by calling OpenMnBd first. The call does a wait for acknowledgement. If the application is using main board communication events these events may be called during the wait for acknowledgement. If multiple scale information and I/O status is desired refer to StartRepeatMulti.

Examples

if(StartRepeatWt(1, 200) == OK)
    DisplayText(0, 0, "scale 1 update 5 times per second");

See Also

Last modified 5 years ago Last modified on 03/16/20 14:13:51
Note: See TracWiki for help on using the wiki.