| | 1 | = SetTareValue = |
| | 2 | Sets the specified scale tare weight to the specified value |
| | 3 | |
| | 4 | {{{ |
| | 5 | int SetTareValue(int nScale = process_scale); |
| | 6 | }}} |
| | 7 | |
| | 8 | == Parameters == |
| | 9 | |
| | 10 | * nScale - scale number to tare |
| | 11 | |
| | 12 | == Return Value == |
| | 13 | |
| | 14 | * Returns OK if successful, otherwise it failed do to motion or other error. Use MnBdGetErrMsg to obtain reason. |
| | 15 | |
| | 16 | == Remarks == |
| | 17 | |
| | 18 | |
| | 19 | == Examples == |
| | 20 | |
| | 21 | {{{ |
| | 22 | float fTare = 200.0; |
| | 23 | if(SetTareCurrent(1, fTare) != OK) |
| | 24 | { |
| | 25 | DisplayText(0, 0, "Error setting tare"); |
| | 26 | } |
| | 27 | }}} |
| | 28 | |
| | 29 | |
| | 30 | == See Also == |
| | 31 | |
| | 32 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/MnBdGetErrMsgStr MnBdGetErrMsgStr] |
| | 33 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/SetTareCurrent SetTareCurrent] |
| | 34 | * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/ZeroScale ZeroScale] |