Hi there,

I need to somehow link a PC, via a serial port, to a weighting scale.
I'm using Visual FoxPro 7 and I really don't know how to do that (I have tried
some FOPEN (COM1) but it didn't work)

Any ideas? Please...

Daniel

Re: Serial communication -> HOW ? by Rick

Rick
Mon Jan 10 13:16:19 CST 2005

Daniel,
You'll just need to use MSCOMM32. Some sample code for accessing serial =
data in VFP using MSCOMM32 can be found in the following:
http://support.microsoft.com/kb/q140525/- HOWTO: Receive from the Serial =
Port by Using MScomm32.ocx.
Also useful may be
http://support.microsoft.com/kb/q139526/ - HOWTO: Send to the Serial =
Port by Using Mscomm32.ocx.
And of course,
http://support.microsoft.com/kb/q154741/ - HOWTO: Transmit and Receive =
Binary Data using MSCOMM32.

If MSCOMM32 doesn't provide you with enough control, you'll need to find =
another 3rd party control to handle the serial communication. Remember =
that in the Windows environment, it controls the I/O ports - you can't =
do it directly - especially in WinNT, Win2000, XP and Win2003.

Rick

"Daniel" <Daniel@discussions.microsoft.com> wrote in message =
news:A270E6DA-D453-4800-871E-6B1C8FBC7A3D@microsoft.com...
> Hi there,
>=20
> I need to somehow link a PC, via a serial port, to a weighting scale.
> I'm using Visual FoxPro 7 and I really don't know how to do that (I =
have tried
> some FOPEN (COM1) but it didn't work)
>=20
> Any ideas? Please...
>=20
> Daniel
>

Re: Serial communication -> HOW ? by Leemi

Leemi
Tue Jan 11 08:27:05 CST 2005

Hi Daniel:

Along with the links Rick recommended, you might want to also check out the
examples of serial port communication available on Universalthread.com. Go
to www.universalthread.com, click on the Download icon, and choose Visual
FoxPro as the product. In the Summary text box of the query page, search
for "serial."

BTW, one of the example specifically deals with writing ocde to work with a
weighing scale.

I hope this helps.

This posting is provided "AS IS" with no warranties, and confers no rights.

Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell

Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003

>Daniel,
>You'll just need to use MSCOMM32. Some sample code for accessing serial
data in VFP using >MSCOMM32 can be found in the following:
>http://support.microsoft.com/kb/q140525/- HOWTO: Receive from the Serial
Port by Using >MScomm32.ocx.
>Also useful may be
>http://support.microsoft.com/kb/q139526/ - HOWTO: Send to the Serial Port
by Using >Mscomm32.ocx.
>And of course,
>http://support.microsoft.com/kb/q154741/ - HOWTO: Transmit and Receive
Binary Data using >MSCOMM32.
>If MSCOMM32 doesn't provide you with enough control, you'll need to find
another 3rd party >control to handle the serial communication. Remember
that in the Windows environment, it >controls the I/O ports - you can't do
it directly - especially in WinNT, Win2000, XP and Win2003.
>Rick
>"Daniel" <Daniel@discussions.microsoft.com> wrote in message
news:A270E6DA-D453-4800->871E-6B1C8FBC7A3D@microsoft.com...
> Hi there,
>
> I need to somehow link a PC, via a serial port, to a weighting scale.
> I'm using Visual FoxPro 7 and I really don't know how to do that (I have
tried
> some FOPEN (COM1) but it didn't work)
>
> Any ideas? Please...
>
> Daniel
>



Re: Serial communication -> HOW ? by Thomas

Thomas
Mon Jan 17 15:03:24 CST 2005

Another approach that you could use that would require no programming
at all would be to use a "Software Wedge" program like WinWedge from
TAL Technologies. WinWedge is basically a serial communications
program that is designed to run in the background and feed incoming
serial data directly to other applications like FoxPro, Excel, Acces,
or any other program. It works by either "stuffing the data through
the keyboard buffer" or by passing the data to another program using
Dynamic Data Exchange which is fully supported in VFP.
For more information on WinWedge visit:
http://www.taltech.com/products/winwedge.html



On Mon, 10 Jan 2005 10:53:02 -0800, Daniel
<Daniel@discussions.microsoft.com> wrote:

>Hi there,
>
>I need to somehow link a PC, via a serial port, to a weighting scale.
>I'm using Visual FoxPro 7 and I really don't know how to do that (I have tried
>some FOPEN (COM1) but it didn't work)
>
>Any ideas? Please...
>
>Daniel


Re: Serial communication -> HOW ? by jean-pierre

jean-pierre
Tue Jan 18 11:54:39 CST 2005

hi,

you can use mscomm32.ocx.

Jp Senet
Ace Informatique

"Thomas Lutz" <tom@taltech.com> a écrit dans le message de
news:l2aou0t4gb1b3a68udv79u7q66oveevjl7@4ax.com...
> Another approach that you could use that would require no programming
> at all would be to use a "Software Wedge" program like WinWedge from
> TAL Technologies. WinWedge is basically a serial communications
> program that is designed to run in the background and feed incoming
> serial data directly to other applications like FoxPro, Excel, Acces,
> or any other program. It works by either "stuffing the data through
> the keyboard buffer" or by passing the data to another program using
> Dynamic Data Exchange which is fully supported in VFP.
> For more information on WinWedge visit:
> http://www.taltech.com/products/winwedge.html
>
>
>
> On Mon, 10 Jan 2005 10:53:02 -0800, Daniel
> <Daniel@discussions.microsoft.com> wrote:
>
> >Hi there,
> >
> >I need to somehow link a PC, via a serial port, to a weighting scale.
> >I'm using Visual FoxPro 7 and I really don't know how to do that (I have
tried
> >some FOPEN (COM1) but it didn't work)
> >
> >Any ideas? Please...
> >
> >Daniel
>