AnsweredAssumed Answered

vrf Need help - Problems with writing & reading to/from serial port

Question asked by rachell on Jan 3, 2005
Hi Kevin,

Thank you very much. It works fine now with the Interface Event object.

Best Regards,
Rachel

-----Original Message-----
From: Kevin Dowsey [mailto:kdowsey@turnkey-solutions.com.au]
Sent: Tuesday, January 04, 2005 12:31 AM
To: Lederman Rachel
Subject: RE: [vrf] Need help - Problems with writing & reading to/from
serial port


Rachel,
You can use the I/O->Interface Event object to find out how many bytes
are
available for reading.

Depending on how the balance sends the information, will determine how
you
should use this object.   Sometimes it makes sense to put two one after
the
other, the first one gets the initial count of bytes and the second is
used
to make sure you know all the bytes often you would put a short delay
between the two.

Then if you have 13 bytes you do one type of read and if you have 11
bytes
you can do another type of read.




At 02:20 PM 3/01/2005 +0200, you wrote:
>Hi Kevin,
>
>Thank you, your advise about the I/O Bus monitor was of a great help.
>Now I can read the message, but the problem is that the balance usually

>sends 11 bytes, but once in a while it sends 13 bytes (2 for status)
>when the weight is not stable and than the reading gets wrong. How
>should I know how many bytes to read? Or should the manufacturer send a

>fixed number of bytes each time?
>
>Best Regards,
>Rachel
>
>-----Original Message-----
>From: Kevin Dowsey [mailto:kdowsey@turnkey-solutions.com.au]
>Sent: Monday, January 03, 2005 12:04 AM
>To: Lederman Rachel
>Subject: Re: [vrf] Need help - Problems with writing & reading to/from
>serial port
>
>
>Rachel,
>You might have a more fundamental problem with the configuration, like
>the EOL
>settings.   Does your balance require a return or Line Feed as an EOL
>character ?   This also needs to be set the right way.
>
>You should seperate the send a receive into seperate  objects for
>debugging purposes
>
>You can also use the I/O Bus monitor to debug this process and then you

>can see whether the Balance sends anything back at all.
>
>
>
> > Hello,
> >
> > I have a balance that is connected to COM2 and responses correctly
> > to a demo program of the company.
> >
> > I define a device on the COM2 - w1@2. The serial properties are :
> >
> > Baud Rate                9600
> > Character                 8
> > Stop Bits                 1
> > Parity                      None
> > Handshake              None
> > Receive Buffer Size  4096  (the default)
> >
> > I need to send the character "p" and in return get an answer like :
> > w1
>
> > 200.26 g
> >
> > It seems very simple, but all I get is an error message :
> >
> > I/O error or timeout occurred with serial interface at 2
> >
> > I am using VEE7 Pro and IO Libraries for Instrument Control Revision

> > M.01.01.
> >
> > Please help.
> >
> > Thank you,
> >
> > Rachel
> >
> >  <<sercom.vee>>
>
>
>
>--

Regards



Kevin Dowsey
Total Turnkey Solutions
Postal Address/Address
PO Box 322/1st Floor 420 Sydney Rd
COBURG VIC 3058 AUSTRALIA

Phone +61 3 9350-7377
Fax +61 3 9350-7310
email : kdowsey@turnkey-solutions.com.au
CHECK OUT OUR WEB PAGE: http://www.turnkey-solutions.com.au

Sales : sales@turnkey-solutions.com.au
Support : support@turnkey-solutions.com.au


This e-mail may be confidential. Any opinions expressed herein are the
opinion of the writer unless there is an express indication to the
contrary. If you are not the intended recipient of this communication
please delete
and destroy all copies and immediately reply by return e-mail. Total
Turnkey Solutions disclaims all liability and responsibility for any
direct
or indirect loss arising from this e-mail and/or any attachments.


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes