01-05-2012 06:26 AM
hello!!!
i have a question!!
i am doing a program to send data from one pc to other, the data that i send is read from a csv file.
and i must read one line per 32ms...
so i have thought and i have a program that reads information from a csv file every 32 ms...and when passed 1 second i send all the info thta i have read to the other pc...
in my program there is a part that doesnt work good, is inthe part of reading and sending
CAN YOU HELP ME??
THE incorrect thing is that in the other pc i don't receve nothing!
thank you!!!
01-05-2012 07:05 AM - edited 01-05-2012 07:05 AM
Hi alan,
- why do you create new threads for the same problem again and again?
- did you test the sending part with a probe? I suspect you're not sending anything as you have those weird loop in a loop construct (in "mandar2_queue"). The inner loop probably never stops and so nothing is sent with DatasocketWrite...
- you also delete the queue in the sending while loop which also prevents sending several data packets when the inner loop stops for some unknown reason...