160
www.analogway.com
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
USER MANUAL
If the parameter does not exist on the object,
nil
is returned.
If an argument with an invalid type is given, error is raised.
function
set_pda_value_by_index
(
object, control, parameter, index, value
)
->
nil
Similar to set
()
but assigns value to an array type parameter
Parameters:
object string: Name of the object to use.
control string: Name of the control in the object.
param string: Name of the parameter in the control.
index integer: Index in the parameter to set.
value number: Value to assign for the parameter array index.
If an argument with an invalid type is given, error is raised.
If the object, control, or the parameter is does not exist, error is raised.
If the parameter on the object is not a DoubleArray, error is raised.
If the given index is out of range, this
function
will silently fail.
function
time
()
->
number
Returns the since server startup
function
ustclock_get
()
->
number
Returns the current time in nanoseconds since the server startup.
function
sleep
(
s
)
->
nil
Pause the current thread for given time.
Parameters:
s number: Time in seconds.
function
wait
(
ns
)
->
nil
Sleep until the given time from the server startup.
Parameters:
ns number: Time in nanoseconds to wait for.
function
is_global_true
(
name
)
->
boolean
Return if the given global variable is true.
Parameters:
name string: Name of the global to check
Global variable is true if it exists and does not have value "0"
Global variable is false if does not exist or has value "0"