70
math.tanh (x)
Returns the hyperbolic tangent of x.
1.2.26.
Table manipulations
This library provides generic functions for table manipulation. It provides all its functions inside
the table table. Most functions in the table library assume that the table represents an array or a
list. For these functions, when we talk about the "length" of a table we mean the result of the
length operator.
table.concat (table [, sep [, i [, j]]])
Given an array where all elements are strings or numbers, returns
table[i]..sep..table[i+1] ···
sep..table[j]
. The default value for sep is the empty string, the default for
i
is 1, and the default
for
j
is the length of the table. If
i
is greater than
j
, returns the empty string.
table.insert (table, [pos,] value)
Inserts element value at position pos in table, shifting up other elements to open space, if
necessary. The default value for
pos
is
n+1
, where n is the length of the table, so that a call
table.insert(t,x)
inserts x at the end of table t.
table.maxn (table)
Returns the largest positive numerical index of the given table, or zero if the table has no positive
numerical indices. (To do its job this function does a linear traversal of the whole table.)
table.remove (table [, pos])
Removes from table the element at position pos, shifting down other elements to close the space,
if necessary. Returns the value of the removed element. The default value for pos is n, where n is
the length of the table, so that a call
table.remove(t)
removes the last element of table t.
table.sort (table [, comp])
Sorts table elements in a given order, in-place, from
table[1]
to
table[n]
, where n is the length of
the table. If comp is given, then it must be a function that receives two table elements, and
returns true when the first is less than the second (so that not
comp(a[i+1],a[i]
) will be true after
the sort). If comp is not given, then the standard Lua operator < is used instead.
The sort algorithm is not stable; that is, elements considered equal by the given order may have
their relative positions changed by the sort.
1.2.27.
Operating system facilities
os.date ([format [, time]])
Returns a string or a table containing date and time, formatted according to the given string
format. If the time argument is present, this is the time to be formatted (see the
os.time
function
for a description of this value). Otherwise, date formats the current time.
If format starts with '!', then the date is formatted in Coordinated Universal Time. After this
optional character, if format is the string "*t", then date returns a table with the following fields:
year (four digits), month (1--12), day (1--31), hour (0--23), min (0--59), sec (0--61), wday
(weekday, Sunday is 1), yday (day of the year), and isdst (daylight saving flag, a boolean).
If format is not "*t", then date returns the date as a string, formatted according to the same rules
as the C function strftime.
Summary of Contents for LogicMachine3 Re:actor
Page 10: ...10 Terminal connection schemes KNX TP...
Page 12: ...12 24V power supply...
Page 13: ...13 Analog inputs e g reed contact...
Page 14: ...14 Analog inputs 0 10V...
Page 15: ...15 Digital output...
Page 16: ...16 Resistive sensor input...
Page 17: ...17 Analog output...
Page 26: ...26 Make sure that bus status is Online press button in ETS...
Page 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Page 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Page 107: ...107...
Page 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Page 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Page 141: ...141...