''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' eventQueue.bas
' Example: Trigger Event Queuing.
' Since VISA cannot callback to a VB function, you can only
' use the VI_QUEUE mechanism in viEnableEvent(). There is no
' way to install an VISA event handler in VB
'
' This program illustrates enabling a trigger event in a queuing
' mode. When the viWaitOnEvent function is called, the program
' will suspend operation until the trigger line is fired or the
' timeout period is reached. Since the trigger lines were already
' fired and the events were put into a queue, the function will
' return and print the trigger line that fired. Note that you
' may need to change the device address.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''