Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Caramatescu Adrian
  Where is Caramatescu Adrian?
 Piatra Neamt
 Romania
 Caramatescu Adrian
 To: aris suguitan
  Where is aris suguitan?
 quezon
 Philippines
 aris suguitan
 Tags
Subject: RE: open serial port for communication
Thread ID: 288988 Message ID: 289001 # Views: 35 # Ratings: 0
Version: Visual FoxPro 9 Category: VFP and .NET
Date: Monday, December 27, 2010 5:32:00 PM         
   


> can someone able to help me create a code that will open serialport com1 or com2
> with details below
>
> port selection com1~com8
> baud rate 9600
> echo off
> data bits selection 1~8
> parity none
> stop bits 1
>
> when a button named activate is press and displays the status of connection to taskbar. like connected 9600,7,1 with timer.
>
> i will use this to read data from serialport
>
> sample data coming from serialport
> 000100051234567890123
> 000100051234567890125
> 000100051234567890124
>
> and the data will be saved with user provided filename.
>
> thank you
>
> aris1781

Try OleClass - ONCOMMLib.ONComm.1, OnComm event. You must set the corresponding property value PortComm.
Ok ?

ENTIRE THREAD

open serial port for communication Posted by aris suguitan @ 12/27/2010 3:44:33 PM
RE: open serial port for communication Posted by William Sanders @ 12/27/2010 5:22:27 PM
RE: open serial port for communication Posted by Borislav Borissov @ 12/27/2010 5:31:45 PM
RE: open serial port for communication Posted by Caramatescu Adrian @ 12/27/2010 5:32:00 PM
RE: open serial port for communication Posted by Don Higgins @ 12/27/2010 7:50:19 PM