2 system support – Rice Lake iRite IDE User Manual
Page 46

42
920i
Programming Reference
GetRawCount
Sets C to the current raw A/D count for scale S.
Method Signature:
function GetRawCount (S : Integer; VAR C : Integer) : SysCode;
Parameters:
[in]
S
Scale number
[out]
C
Current raw A/D count
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysInvalidRequest
The scale specified by
S
is not an A/D-based scale.
SysDeviceError
The scale is reporting an error condition.
SysOK
The function completed successfully.
Example:
RawCount : Integer;
…
GetRawCount (1; RawCount);
GetWVal
Sets V to the configured WVAL (test weight value) for scale S.
Method Signature:
function GetWVal (S : Integer; VAR V : Real) : SysCode;
Parameters:
[in]
S
Scale number
[out]
V
Test weight value
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysInvalidRequest
The scale specified by
S
is not an A/D-based scale.
SysOK
The function completed successfully.
GetZeroCount
Sets V to the acquired zero count for scale S.
Method Signature:
function GetZeroCount (S : Integer; VAR V : Integer) : SysCode;
Parameters:
[in]
S
Scale number
[out]
V
Zero count
SysCode values returned:
SysInvalidScale
The scale specified by
S
does not exist.
SysInvalidRequest
The scale specified by
S
is not an A/D-based scale.
SysOK
The function completed successfully.
5.2
System Support
Date$
Returns a string representing the system date contained in DT.
Method Signature:
function Date$ (DT : DateTime) : String;
DisableHandler
Disables the specified event handler. See Section 6.1 on page 85 for a list of handlers.
Method Signature:
procedure DisableHandler (handler);