Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68906

2 producer/1 consumer loop failure.

$
0
0

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.


Viewing all articles
Browse latest Browse all 68906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>