Hi,
First of all welcome!
I'm not sure if I have a definite answer for you so I'll start with presenting you with a counter question instead ;-)
It's not clear to me if the numbers are received as text (string) or as values, ie. are you receiving [1] [9] [2] [,] [2] [8] [,] [5] [6] (9 bytes there) or are you receiving [192] [44] [28] [44] [56] (5 bytes there where 44 is ASCII for the comma) or are you not actully receiving the commas, ie [192] [28] [56] (three bytes there) ?
By the sound of it you're looking at the latest, if so it shold work with the WAIT modifier, like this:/Henrik.Code:myArray VAR BYTE[32] i VAR BYTE 'Clear the array for testing purposes. For i = 0 to 31 myArray[i] = 0 NEXT ' Wait for [192] [28] [56] then receive up to 32 bytes or stop when received byte is [0]. HSERIN [WAIT (192,28,56), STR myArray \32 \0] HSEROUT [STR myArray, 13]




Bookmarks