Hi I am trying to read a frame of 400 bytes from a serial port and place them into an array so I can pick and choose which bytes I am interested in or not.
Basically I am using SerialPort1.ReadByte() to read each byte one by one. I really am only interested in the 11th and 12th bytes in the 400 byte frame, so what I would like to do is set up a counter which reads in a byte and increments the "ByteCount" and then when ByteCount is equal to 11 I would like to save that value and do the same for ByteCount 12.
I am having a hard time with this and was wondering if someone could help me out.
Thank you.
Basically I am using SerialPort1.ReadByte() to read each byte one by one. I really am only interested in the 11th and 12th bytes in the 400 byte frame, so what I would like to do is set up a counter which reads in a byte and increments the "ByteCount" and then when ByteCount is equal to 11 I would like to save that value and do the same for ByteCount 12.
I am having a hard time with this and was wondering if someone could help me out.
Thank you.