I am having problems with using two producer and one consumer code. I am reading in digital data and also analog measurements in one producer loop. In another producer I am using a counter to take pulse width measurements. In the consumer loop I am displaying the analog,digital, and counter data. The problem I am having is only the Analog and Digital data are displayed but not the counter data( pulsewidth measurements). This setup requires that I monitor a digital input and utilize Change detection both rising and falling edges. On Detection of the edges I do an Analog acquisition. This is done in one Producer loop.
My other producer loop uses a counter to take pulse width measurements. The data in this loop is obtained and is accurate. It just never shows up in my consumer loop.
If I disable analog measurements it does show up. Racing condition maybe exists? If so what can be done to get this to work right. I have uploaded the project here. Thank you, help is greatly appreciated.