Hello! I'm doing my bachelor thesis and I really need some help because it was four days ago when I got stuck with this problem and I don't know how to solve it.
I am implementing GoBackN protocol. My LabVIEW program gets a packet from Arduino with this format:
%d#%d#%d#%d, i.e. 1#0#0#0 where 000 are the data and I have to store them in a buffer if Sequence Number is correct, I mean if the packet arrives in the expected order.
I need to check the buffer to know if the communication is working properly, but the array seems to be "empty", even though I have checked that I am writing data in it.
I wonder that it might be because the while loop iterates very quickly but I don't really don't know if this is the reason, and if so, how to solve it.
I would really appreciate any help!!