02-12-2014 03:32 AM
Hi,
I have difficulties to ensure that all data in serial buffer are read before the program stop(after I push stop button). Help needed and appreciated. Thank you.
rgds,
Zahari
02-12-2014 06:46 AM
It is kind of hard to tell you what is wrong without some code to look at. I don't even have a frame of reference to help you. What are you communicating with? What is the communication protocol? SHARE SOME CODE.
02-12-2014 08:41 AM
crossrulz,
Thanks for your reply. The attached subvi is used in while loop to read data from a INS system via USB serial comm. I have continous data read from the bufffer but when I stop the program, meaning stop the while loop and later start again, the program gives the error of overrun. I hoope this decribes...Thanks
02-12-2014 08:41 AM
crossrulz,
Thanks for your reply. The attached subvi is used in while loop to read data from a INS system via USB serial comm. I have continous data read from the bufffer but when I stop the program, meaning stop the while loop and later start again, the program gives the error of overrun. I hoope this decribes...Thanks
02-12-2014 10:24 AM
@ninermikezaa wrote:
crossrulz,
Thanks for your reply. The attached subvi is used in while loop to read data from a INS system via USB serial comm. I have continous data read from the bufffer but when I stop the program, meaning stop the while loop and later start again, the program gives the error of overrun. I hoope this decribes...Thanks
If the instrument is constantly sending data, there is nothing your can do. You have to tell the instrument to stop sending the data.
02-12-2014 09:21 PM
So, I have to send stop command to the instrument soon as I stop my program right? Ok Thanks I will do that.