====Value==== The **Value** function is part of the [[Trigger]] class. It returns an up-to-date data value from ARDI. These are in the order that you specified in the '[[decorators|@data]]' decorator for your function. The function has an //optional// parameter of the index in the array you'd like to read. If you don't specify, it assumes you want the 0th index. //NOTE: The 'values' buffer is actively updated with new data as it changes. If you are going to use data from the [[values]] array or value function in long-running tasks, we suggest you record that information into local variables at the **start of your function** to ensure that it doesn't change throughout your process.// ===See Also=== You can also access the whole set of values using the [[values]] array. You can see the //previous// values for your points using the [[OldValue]] function or [[oldvalues]] array.