04-23-2016 08:10 AM
@ZohaibRamzane wrote:
Now there is another problem. The problem is after runnunig the program , the upper big loop runs and update write to measure file after 8 seconds. But the read from measurement file only reads the updated file only once not always when I push the subvis button.
I want to read the new data every time as it has been updated every 8 sec.
I am pretty sure RavensFan already told you the problem. Your read is only done once due to it being outside of a loop.
Instead of reading the file, why don't you use something like a Producer/Consumer setup. The idea is that you use a queue to send the new data to another loop for processing.
04-23-2016 09:55 AM
04-23-2016 10:49 AM
Search the forum for "producer/consumer".
Click on the New..... link under the file menu. You'll see templates there for producer/consumer.
04-29-2016 10:39 AM
04-29-2016 10:43 AM