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

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

--

SetTareValue

Sets the specified scale tare weight to the specified value

int SetTareValue(int nScale, float fTare);

Parameters

  • nScale - scale number to tare
  • fTare - tare value

Return Value

  • Returns OK if successful, otherwise it failed do to motion or other error. Use MnBdGetErrMsg to obtain reason.

Remarks

Examples

float fTare = 200.0;
if(SetTareValue(1, fTare) != OK)
{
   DisplayText(0, 0, "Error setting tare");
}

See Also

Note: See TracWiki for help on using the wiki.