» » » Using ActiveXperts Serial Port Component with Visual Basic 6.x ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface. Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port. It can even be another PC, connected via a NULL modem cable. ActiveXperts Serial Port Component features the following:. Direct COM port support (like 'COM1').
Apr 15, 2013 I know I have to change designation of the serial port but what about the user interface. The text is all too big and the buttons don't seem to work right. The Serial port (also know as the RS-232 port) was first created in 1969, and despite its age, it is still widely used in the industry. The process of computer driven.
TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem');. Support for RS-232/RS422/RS485, up to 256 simultaneous ports;. Support for all types of Hayes compatible modems;. Support for serial cable as well as USB cable or Bluetooth connections;. Support for Virtual COM ports (i.e.
COM ports redirected through the network);. Hardware flow control (RTS/CTS, DTR/DSR) and software flowcontrol (XON/XOFF) support;. Configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer.
Step 1: Download and install the ActiveXperts Serial Port Component Download the ActiveXperts Serial Port Component from the and start the installation. The installation guides you through the installation process. Step 2: Create a new Visual Basic project Launch 'Microsoft Visual Basic' from the Start menu, and choose 'New' from the 'File Menu'. The 'New Project' dialog appears.
Select 'Standard Exe' and click 'OK': (Click on the picture to enlarge) Step 3: Refer to the ActiveXperts Serial Port Component Library and create the objects A new Project is created, with a blank form. First, you must add a reference to Serial Port Component in the project to be able to use the object. To do so, choose 'References.' From the 'Project' menu.
![Purebasic Serial Port Example Purebasic Serial Port Example](/uploads/1/2/5/3/125388358/261280860.png)
In the 'References' dialog that pops up, enable the 'Serial Port Component 2.2 Type Library' reference as shown in the following picture: (Click on the picture to enlarge) Click 'OK' to close the 'References.' Then, select the Project form and choose 'View Code' from the context menu: (Click on the picture to enlarge) On top of your code, declare the following object: Public objComport As AxSerial.ComPort Step 4: Create the object From the Code window, select 'Form'.
The Private Sub 'FormLoad' will be displayed now. In the 'Form Load' function, create the object in the following way: Set objComport = CreateObject('AxSerial.ComPort') Step 5: Send an AT command to a connected Hayes compatible modem You can now send and/or receive data to and/or from a serial device. The following code shows how to query a modem: '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' DO NOT FORGET: ADD A REFERENCE TO THE SERIAL PORT COMPONENT LIBRARY FROM THE PROJECT-REFERENCE '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
» » » Using ActiveXperts Serial Port Component with Visual Basic 6.x ActiveXperts Serial Port Component is a software development kit (SDK) that enables the user to communicate to a device over a serial interface. Such a device can be: a weight indicator, a modem, a scanner, or any other device that is equiped with a serial port.
It can even be another PC, connected via a NULL modem cable. ActiveXperts Serial Port Component features the following:. Direct COM port support (like 'COM1'). TAPI (Windows Telephony Device) support (like 'Standard 56000 bps Modem');.
Support for RS-232/RS422/RS485, up to 256 simultaneous ports;. Support for all types of Hayes compatible modems;.
Support for serial cable as well as USB cable or Bluetooth connections;. Support for Virtual COM ports (i.e.
![Purebasic Serial Port Example Purebasic Serial Port Example](http://www.6581-8580.com/uploads/000001032015150552/f_sidrec.jpg)
COM ports redirected through the network);. Hardware flow control (RTS/CTS, DTR/DSR) and software flowcontrol (XON/XOFF) support;. Configurable baudrate/parity/stopbits, full buffered data transfer, text/binary data transfer.
Step 1: Download and install the ActiveXperts Serial Port Component Download the ActiveXperts Serial Port Component from the and start the installation. The installation guides you through the installation process. Step 2: Create a new Visual Basic project Launch 'Microsoft Visual Basic' from the Start menu, and choose 'New' from the 'File Menu'. The 'New Project' dialog appears.
Select 'Standard Exe' and click 'OK': (Click on the picture to enlarge) Step 3: Refer to the ActiveXperts Serial Port Component Library and create the objects A new Project is created, with a blank form. First, you must add a reference to Serial Port Component in the project to be able to use the object. To do so, choose 'References.' From the 'Project' menu. In the 'References' dialog that pops up, enable the 'Serial Port Component 2.2 Type Library' reference as shown in the following picture: (Click on the picture to enlarge) Click 'OK' to close the 'References.' Then, select the Project form and choose 'View Code' from the context menu: (Click on the picture to enlarge) On top of your code, declare the following object: Public objComport As AxSerial.ComPort Step 4: Create the object From the Code window, select 'Form'. The Private Sub 'FormLoad' will be displayed now.
In the 'Form Load' function, create the object in the following way: Set objComport = CreateObject('AxSerial.ComPort') Step 5: Send an AT command to a connected Hayes compatible modem You can now send and/or receive data to and/or from a serial device. The following code shows how to query a modem: '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ' DO NOT FORGET: ADD A REFERENCE TO THE SERIAL PORT COMPONENT LIBRARY FROM THE PROJECT-REFERENCE '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!