konter you have an array of text1(n).text boxes and, with your VB code, in every box you transfer just one byte, so you must have all the boxes on the form to see something.
Code:
Text1(1).Text = BufferIn(2)
Text1(2).Text = BufferIn(3)
Text1(3).Text = BufferIn(4)
Text1(4).Text = BufferIn(5)
Text1(5).Text = BufferIn(6)
Text1(6).Text = BufferIn(7)
Text1(7).Text = BufferIn(8)
Text1(8).Text = BufferIn(9)
It is much better with one single text box
Code:
Dim I as Integer
Text1.text = ""
' first byte is the report ID, e.g. BufferIn(0) so you start with 1
For I=1 to 9
Text1.text = text1.text + BufferIn(I)
next
In the above example you will have all the bytes nicely added to text1.text box
Al.
Bookmarks