I'm having issues.lol.
I have a UI, and a second, comms, thread that will be simply looping and sending and recieving data to RS232 as frequently as possible.
I'm struggling to figure the best way to have the data shared between the threads so the user can enter new co-ordinates in the UI and it will process the change and alter the data that the comms thread reads, in a fashion that gives the required acceleration and speed of movement of the item.
I'm wondering if it would be better to use some sort of a stack of co-ords (co-ords are actually in a 23 byte string) written in one go by the UI thread, and picked off one at a time by the comms thread (down to the final position at which it will continue sending that position)instead of an intensive UI thread, bearing in mind that the other end of the RS232 is sat expecting constant data feed with no more than 250ms between new co-ords.
I'm guessing I'm using CS's too which dont appear to be a prob on the surface. I'm hoping not anyway!
My backgroud = new to programming so go easy