====Trigger==== The **Trigger** class is the main class you'll be interacting with using the Trigger system. It is passed to both the function you want to be triggered, and to the condition that determines if the function should be called. ===Member Variables=== [[values]] \\ //An array of the data values being fed from ARDI.// [[oldvalues]] \\ //An array of the data values the last time the function was run. Note that this will be **None** the first time the function is called.// ===Member Functions (Condition Function)=== [[Value]] \\ //Used to get an ARDI value// [[OldValue]] \\ //Used to get the ARDI value last time the function was run// [[Name]] \\ //Gets the name of the trigger, if one is available// ===Member Functions (Trigger Function)=== [[Condition]] \\ //Returns the state of the condition that drives the trigger, when running on [[edge modes|both edges]]// [[Range]] \\ //Get the range between the current time and the last time the function was run// [[FirstRun]] \\ //Returns 'true' if this is the first time this trigger has fired// [[GetARDIAPI]] \\ //Get a shared ARDI API object for making queries// [[GTHist]] \\ //A 'greater than' comparison with hysteresis// [[LTHist]] \\ //A 'less than' comparison with hysteresis// [[Changed]] \\ //Returns true if there are changes between the current value and the previous one// [[LogEvent]] \\ //Write an output to the [[mos:Welcome|Modular Output System]] key-value writer// [[Output]] \\ //Write an output to the [[mos:Welcome|Modular Output System]] event writer//