Using VB I can read all the printable characters, but
apparently the MSComm tool is useless for binary data. I have
an application that needs to read 10 to 20 bytes of data and
display them as hex codes. Was hoping PB/DLL could do this but
so far no luck. The help file has this two line example:
Qty& = COMM(#hComm, RXQUE)
COMM RECV #hComm, Qty&, a$
In my programs Qty always gets only zero bytes. But I don't
understand RXQUE... what is it? I tried to declare it as an
integer etc. but no help. Also tried getting a byte or an
integer in lieu of the a$ string variable. The incoming data
for this app is at 19200 but repeated at a 10Hz rate so I could
poll a function continuously, getting one byte each time.
Any help is appreciated.
Russ
------------------
Russ
apparently the MSComm tool is useless for binary data. I have
an application that needs to read 10 to 20 bytes of data and
display them as hex codes. Was hoping PB/DLL could do this but
so far no luck. The help file has this two line example:
Qty& = COMM(#hComm, RXQUE)
COMM RECV #hComm, Qty&, a$
In my programs Qty always gets only zero bytes. But I don't
understand RXQUE... what is it? I tried to declare it as an
integer etc. but no help. Also tried getting a byte or an
integer in lieu of the a$ string variable. The incoming data
for this app is at 19200 but repeated at a 10Hz rate so I could
poll a function continuously, getting one byte each time.
Any help is appreciated.
Russ
------------------
Russ
Comment