Velmex    |    BiSlide    |    XSlide
Image Fade Right
 
VXM Driver Documentation - PowerBasic - PortWaitForChar
 
Image - VXM

All functions assume you followed directions in the "How To Add To Your Project"

PortWaitForChar

The "PortWaitForChar" function is very useful in pausing your software code until a particular character is seen on the port.

      Such as waiting for the "^" from the VXM indicating that it has finished running its program so you can now take a reading, or some other process.

Syntax:
      FUNCTION PortWaitForChar(CharToWaitFor AS ASCIIZ, OPTIONAL BYVAL TimeOutTime AS LONG) AS LONG



Parameters:
      CharToWaitFor = Character to wait for. (typically the "^")

      (Optional) TimeOutTime = Time in MilliSeconds to wait

            (if character not found before the timeout then your code will continue.

            (if zero then driver will wait until either the character is found, or loss of communications)



Returns:
      0 if failed
      1 if successfull

Example:
      Dim CallPortWaitForChar As Long
      CallPortWaitForChar = PortWaitForChar("^")

Image Fade Bottom Image Fade Right Bottom