reads a message from the 'position' of the queue
function getEvent input Integer queue; input Integer position = 1; output stdEvent e; output Integer out; end getEvent;