15 mathematical operations – Rice Lake iRite IDE User Manual
Page 79
920i
Programming Reference - API Reference
75
StartTimer
Starts timer T (1–32). For one-shot timers, this function must be called each time the timer is used. Continuous
timers are started only once; they do not require another call to StartTimer unless stopped by a call to the
StopTimer function.
Method Signature:
function StartTimer (T : Integer) : Syscode;
Parameters:
[in]
T
Timer number
SysCode values returned:
SysInvalidTimer
The timer specified by
T
a not valid timer.
SysOK
The function completed successfully.
StopTimer
Stops timer T (1–32).
Method Signature:
function StopTimer (T : Integer) : Syscode;
Parameters:
[in]
T
Timer number
SysCode values returned:
SysInvalidTimer
The timer specified by
T
a not valid timer.
SysOK
The function completed successfully.
5.15 Mathematical Operations
Abs
Returns the absolute value of x.
Method Signature:
function Abs (x : Real) : Real;
ATan
Returns a value between –
/2 and /2, representing the arctangent of x in radians.
Method Signature:
function Atan (x : Real) : Real;
Ceil
Returns the smallest integer greater than or equal to x.
Method Signature:
function Ceil (x : Real) : Integer;
Cos
Returns the cosine of x. x must be specified in radians.
Method Signature:
function Cos (x : Real) : Real;
Exp
Returns the value of e
x
.
Method Signature:
function Exp (x : Real) : Real;
Log
Returns the value of log
e
(x).
Method Signature:
function Log (x : Real) : Real;