Velmex    |    BiSlide    |    XSlide
Image Fade Right
 
VXM Driver Documentation - Visual Basic .NET 2003 - PortOpen
 
Image - VXM

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

PortOpen

The "PortOpen" function is used to correctly configure and open the serial port for communication with the VXM.

This function is necessary if any of your code is going to communicate with the VXM.



Syntax:
      PortOpen(ByVal PortNumber As Long, ByVal BaudRate As Long) As Long

Parameters:
      PortNumber = Number of the port to open (1 for Com1, 2 for Com2 etc.)
            Typically 1 is used
      BaudRate = Baud Rate of communication (9600, 19200, 0r 38400)
            Typically 9600

Returns:
      0 if failed
      1 if success

Example:
      Dim CallPortOpen As Long
      CallPortOpen = VXM.PortOpen(1, 9600)

Image Fade Bottom Image Fade Right Bottom