Customization > Automation Interface > Functions > For System Simulations > Event Functions > GetNextEvent function (automation interface)
GetNextEvent function (automation interface)
Syntax:
GetNextEvent
Gets the next event that is queuing in the State Machine Controller. This function returns a Boolean value to indicate success or failure.
* 
This function requires event queuing to be enabled. Enable event queuing through the EnableEventQueuing function.