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

Version 2 (modified by Don Wilson, 14 years ago) ( diff )

--

GetWtError

Get weight error status.

bool GetWtError(int nScale = process_scale)

Parameters

  • nScale - scale number

Return Value

  • Returns true if the specified scale is in the weight error condition such as having a disconnected load cell, or false if the scale is not in the weight error condition.

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.

Examples

if(GetWtError())
{
    DisplayText(20, 20, "Weight Error");
}
if(GetWtError(1))
{
    DisplayText(20, 20, "Weight Error");
}

See Also

Note: See TracWiki for help on using the wiki.