stantheman
Posts: 6
Joined: Tue Apr 26, 2005 7:40 am
Location: USA

Using Write Command in Serial Tools-ActiveX

Wed Jun 02, 2010 9:07 pm

I am having problems with a RS232 scale head recognizing "{RW}" (Read Weight) sent by your events example code. The scale head responds with the weight in brackets (such as [102])when I send the command using CPS Plus program using the same port, settings and USB adapter. When I send using your example it shows that I sent 4 bytes but only responds with "]". Do you have anything for me to try? I have been using the onRead event for several years without any problem.

stantheman
Posts: 6
Joined: Tue Apr 26, 2005 7:40 am
Location: USA

RE: Using Write Command in Serial Tools-ActiveX

Fri Jun 04, 2010 11:26 am

The problem appears to be a timeing issue. If I use the noevents read and put a pause after the write, I get the correct information from the scale head. How do I delay the on_read event for a second or two after I send the {RW} command before it reads the data.

Return to “SerialTools”