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

IsWtStatusChanged

Checks whether the weight status such as "Motion" or "Over Capacity" is different from the last time IsWtStatusChanged was called.

bool IsWtStatusChanged(int nScale);

Parameters

  • nScale - scale number

Return Value

  • Returns true if the weight status of the specified scale is changed, or false if the weight status is the same as the last time IsWtStatusChanged was called.

Remarks

The value returned is from an internal memory buffer from the last MnBdRead? that received a weight for the specified scale. An application program should be structured properly for this data to be updated when needed.

Example

if(IsWtStatusChanged(1))
{
     if(IsMotion(1))
     {
         DisplayText(0, 0, "Motion");
     }
}

See Also

Last modified 6 years ago Last modified on 04/12/18 12:54:55
Note: See TracWiki for help on using the wiki.