WaitSig Statement

Waits for a signal from another task.

Syntax
WaitSig signalNumber [, timeOut]

Parameters

signalNumber
Specifies the signal number to be received as an integer value (0 to 63).
timeOut
Optional. Real expression representing the maximum time to wait.

Description
Use WaitSig to wait for a signal from another task. The signal will only be received after WaitSig has started. Previous signals are ignored.

See Also
Wait, WaitPos, Signal

WaitSig Statement Example

Function Main
  Xqt SubTask
  Wait 1
  Signal 1
  .
  .
Fend

Function SubTask
  WaitSig 1
  Print "signal received"
  .
Fend