01-30-2015 06:49 AM
Hi! I being monitored voltage Serial port speed 230000Baud / s. It is fast and accurate, but when I want to record this data to a file tmds, xls, txt, this is reduced the speed of the program and buffer overflows series, which reduces the rate voltage monitoring information. I have tried on 2 PCs with four core processors . I think that this is not due to the PC.
Because of what it might be?
Solved! Go to Solution.
01-30-2015 06:56 AM
File IO is SLOW. So you need to offset that somewhere. Look at the Producer/Consumer. The idea here is to have a loop that just reads the serial port (as fast as it needs to) and use a queue to pass the data to another loop for processing and saving it to disk.
01-31-2015 05:46 PM
Thank you! I like it helped.