Hi all, it's me again.
Anywho, I have a producer-consumer structure that is producing hardware data and consuming the data to write to file. I also have a variable that is calculated and needs to be written to the file when the hardware data is written. The hardware data is behaving nicely but the software variable "Mode Number" is writing to the file as fast as the loop iterates. So in my data file after a couple of data samples, I have hundreds of entries for the "Mode Number".
The question is how do I synchronize the writing of the mode number so that it corresponds to the appropriate hardware sample?
I attached a PNG of the loop.
Thanx for the help yet again.
/this forum is the best site to get a question answered bar none.