I recently doing PC serial port receive data, as shown in figure, which extract the seventh in the array of the corresponding node number, the eighth data for the corresponding node Textbox shows,
General idea: is to a serial port receives the data stored in a character array, and then the data are displayed in the corresponding is used in the textbox1-8
Through multiple choice judgment assignment:
If (buf (6)=01) then
Textbox1. Text=buf (7)
Elseif (buf (7)=02) then
Textbox2. Text=buf (7)
Elseif...
End the if
But considering the number of nodes increases to more than 30, so this approach would seem to be very tedious,
Hope to have understand the great spirit of the knowledge can provide the idea or method, thank you very much!!!!!!