.WaitForMultipleEvents

Syntax

WaitForMultipleEvents "EventExpression", "Timeout"

Description

Begins a wait that is satisfied by the occurrence of a series of global events. This command enables Host Integrator to rely on an order of events rather than the number of data packets that are sent from a character mode host. Since Host Integrator handles only one command per packet of data, the WaitForMultipleEvents command is designed to encapsulate several global events into one unique command. The operation containing this command is paused until all of the waits expire or are satisfied.

To define global events that can be used with this command on any entity, click Events on the Model menu to open the Event Edit dialog box. To create conditional expressions and sequences using global events, click the Edit button to open the Event Expression Editor dialog box. To view the datastream coming from the host, open the Model Debug Messages dialog box.

Command Parameters

EventExpression Click the Edit button to open the Event Expression Editor dialog box and create conditional expressions and sequences using defined global events. Use the buttons in this dialog box to create a string of global events that is specific to the selected entity.
   
Timeout Argument type: String
  Specifies an interval of time in HH:MM:SS format. The wait terminates if this amount of time passes without the specified events occurring. If this method times out, an error occurs.
   


Related Topics
Bullet .Wait command