Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Brisbane
 Australia
 Bernard Bout
 To: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 Tags
Subject: RE: Reading using MSCOMM ActiveX "Help !!"
Thread ID: 23000 Message ID: 57198 # Views: 45 # Ratings: 0
Version: Visual FoxPro 8 Category: Active X Controls & OLE Automation
Date: Monday, December 06, 2004 9:59:26 AM         
   


Hi Pete

I used to work with scales and mscomm.

To aid us we had written a Scale Emulator in VFP. To use it you need a COM cable and 2 ports. The Scale Emu sits on one port and sends its output and the MSComm sits on the other port and accepts input.

The Scale EMU is configurable and the strings are stored in a table.

The other VFP form sits on the other COM port and waits for input. It too is configurable and works for continuous input, also with settings for KG, decimal place etc.

It was an essential tool. The COM cable is plugged into the 2 ports and The Scale EMU sends the string out one and the FOrm receives into the other.

If you want I will package these files with a small doc and send you.

I have to dig out the code from a backup cd and make sure the referenced classes are all there.

Let me know.

> Hi,
>
> What I thought was a no-brainer has not turned out that way. This should be simple, but
> I am stuck.
> I got as electronic weight meter that hooks up to scales. The scales work, and meter works.
> It has a serial 232 connection that plugs into a computer's comm port. I got this installed and
> attempting to read the weight in.. but all I am getting is a null return. Tested the entire thing
> on a Visual Basic application and a C application and can read in the value, but seems in VFP
> I cannot get anything at all... what am I doing wrong ???
> Got the mscomm on my form set the control to comm port 2, and settings 1200,o,7,1 which are
> the setting that work running in the other programming languages.
> I got the comm 2 settings as well set in the Windows- Control - Devices to match 1200,o,7,1 as well.
>
> All I am doing in my code from a command button is:
> Open the port, read in the value to a memory variable, and close the port.
>
>
> Pete from the Great White North. (Only in Canada, ay.) Over and Out ...


ENTIRE THREAD

Reading using MSCOMM ActiveX "Help !!" Posted by Pete Sass @ 5/1/2003 5:00:23 PM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by Andy Goeddeke @ 5/1/2003 5:48:41 PM
RE: Reading using MSCOMM ActiveX "Got it!" Posted by Pete Sass @ 5/1/2003 8:23:28 PM
RE: Reading using MSCOMM ActiveX "Got it!" Posted by Andy Goeddeke @ 5/1/2003 8:28:09 PM
RE: Reading using MSCOMM ActiveX "to Andy!" Posted by Pete Sass @ 5/1/2003 10:25:51 PM
I had same OnComm problem myself. Here's a tester Posted by Ken Blum @ 5/2/2003 10:05:56 PM
Here's a comm port test "Thanks Ken !" Posted by Pete Sass @ 5/3/2003 2:10:24 PM
RE: Here's a comm port test "Thanks Ken !" Posted by tanya legault @ 4/7/2008 5:04:58 PM
RE: I had same OnComm problem myself. Here's a... Posted by Bob Schroen @ 12/3/2004 10:39:31 PM
RE: I had same OnComm problem myself. Here's a... Posted by Pete Sass @ 12/4/2004 1:37:17 AM
RE: I had same OnComm problem myself. Here's a... Posted by Ken Blum @ 12/6/2004 3:27:31 PM
RE: I had same OnComm problem myself. Here's a... Posted by Bob Schroen @ 12/6/2004 10:51:45 PM
RE: I had same OnComm problem myself. Here's a tester Posted by Bhavbhuti Nathwani @ 1/20/2012 1:55:30 PM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by Bernard Bout @ 12/6/2004 9:59:26 AM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by G Nanda @ 9/25/2007 7:29:01 PM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by Bernard Bout @ 9/26/2007 5:56:18 PM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by G Nanda @ 9/26/2007 6:10:22 PM
RE: Reading using MSCOMM ActiveX "Help !!" Posted by Nadir Khan @ 6/20/2011 4:32:11 PM