Re: PC Com Port data capture....



Note this method burns a user license by running full time on a serial port.
This program assumes your scale sends a single character string with a
carriage return at the end of the string as most do.

write the program:
SOURCE "PORT.LISTEN"
OPEN "FILENAME" TO FNAME ELSE STOP
SEQ=0
*
START:
INPUT STRING
IF STRING#"" THEN
SEQ=SEQ+1
WRITE STRING ON FNAME,SEQ
END
GOTO START
*
END

compile and catalog the program

create a system pointer:
SYSTEM "PORT.LISTEN"
Q
account name


create a users pointer:
USERS "PORT.LISTEN"
..
..
18 TO PORT.LISTEN


log on the serial port to the program:
LOGON port#,PORT.LISTEN


"sf" <junk@junk> wrote in message news:11lsa6nqdui3h90@xxxxxxxxxxxxxxxxxxxxx
> Looking for someone with experience in PICK D3 to take an existing program
> that runs on a PICK port, "listening" for data input and writes the
received
> input to a record in the D3 database that is then used in other
> applications. Moving to D3 windows, we need this application to "listen"
on
> the comm or serial port of a PC and take the same information and write it
> to the database record.
>
> I can provide the original program written in basic for someone to convert
> to work listening on a PC serial port. This is for a scale application.
The
> input through the PC has been established using Oracle but the Oracle
> project has been canned. Anyone interested in taking a look?
>
> Please respond via email to sficarro@xxxxxxxxxx and with an expected cost
if
> known.
>
> Thank you
>
>
>


.



Relevant Pages

  • RE: SerialPort read&write members display string value above 127 as "?
    ... Serial Port Class methods of Read and Write default to ASCII code ... namespace EncodeTest1 ... // A Unicode string with two characters outside an 8-bit code ... "This unicode string contains two characters " + ...
    (microsoft.public.dotnet.framework)
  • Re: String Variable containing "R" has zero length??? mscomm1.input
    ... >>I can't read from the serial port. ... >>dim d as integer ... >>Bunch of stuff For Sale and Wanted at the link below. ... > You need to find out why the com control is returning an empty string. ...
    (microsoft.public.vb.controls)
  • Re: how can I send AT commands by the serial port when the VISA VIs dont work?
    ... serial port, if I use the hyperterminal of Windows I do not have ... This is done with a termination character ... LabVIEW sends out EXACTLY the characters you tell it to ... to the device you have to append them explicitedly to the string you ...
    (comp.lang.labview)
  • Re: String Variable containing "R" has zero length??? mscomm1.input
    ... > I can't read from the serial port. ... > dim d as integer ... containing an empty string rather that the character "R". ... You need to find out why the com control is returning an empty string. ...
    (microsoft.public.vb.controls)
  • Re: A question on action and tension
    ... he's clinging to physics as far ... He agrees that a longer string needs greater tension to pull it up to ... experience of anyone who has set up a great number of guitars. ... short scale instruments, precisely because the looser string has greater ...
    (rec.music.classical.guitar)