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

USB switch used in consumer loop giving errors

$
0
0

Hello All,

I have created producer with multiple consumers to measure pressure data. I put the USB switch with VISA into Consumer loop, thought that if DAQ is determining time rate in whole application, consumer and switch loop WILL run in parallel. That is correct, those loops are running for x thousand cycles in parallel, but after that VISA gets an error in VISA Write, Switch consumer loop is slowing down significantly and physical USB switch is not working (communication is closed in case of error in VISA Write). I tried different variations, tried to increase timeout in VISA Open, slowing down producer loop to have enough data in queue, etc and I am out of ideas. The only thing that lasted is to put all functions Switch consumer loop into Producer loop to have no issues with queue. Another thing is maybe create 2nd producer with this switch, but how I can sync both producer loops then when 1st producer with DAQ is determining time?

 

Thank you for your time,

Moseq


Viewing all articles
Browse latest Browse all 69591


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