User Tools

Site Tools


jvs:cigal:manual:chapter6:r_vwait

CIGAL Reference Manual, Chapter 6 (RealTime): r_vwait

r_vwait -- Wait for the a data variable to have a specified value

usage: r_vwait opflg eflag ltime Varb [Value Flag]

Wait until the value of the named variable, VARB, satisfies the specified wait condition. The default wait condition is any change in the value of VARB. You can also use a more specific wait condition by specifying the Value and Flag arguments. The wait conditions indicated by the FLAG parameter are:

    FLAG:  0 - wait until VARB equals VALUE
           1 - wait until VARB is greater than VALUE
           2 - wait until VARB is less than VALUE
           3 - wait until a bitwise AND between VARB and VALUE is non-zero
           4 - wait until VARB does not equal VALUE
           5 - wait until (VARB & VALUE) == 0

If the VALUE and FLAG arguments are omitted, R_VWAIT waits until the value of VARB changes.

Note: For comparisons both VARB and VALUE are treated as short integer values; the variables themselves, however, can be either short or long integers.

See Also:
CIGAL Home, CIGAL Manual, RealTime List, Manual Help

jvs/cigal/manual/chapter6/r_vwait.txt · Last modified: 2023/02/23 18:43 (external edit)