Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5352

Can ai ports be accessed by different tasks on USB-6221?

$
0
0

My program creates task1 and reads volts on ai0. Works great. I tried to create task2 to read volts on ai1. But when I start task2 I get error -50103 with text message saying "specfied reource is reserved". Does this mean that the eight ai ports (ai0-ai7) can only be accessed by a single task? Should I stop the first task before starting the second? In other words, start task 1, read ai0, stop task1, start task2, read ai1?

 

The reason I want two tasks is because ai0 and ai1 represent two logically different quantities. For example, I'd like to call the first task "temperatureTask" and the second task "pressureTask".

 

Further information: I'm using "one sample on demand" for the first task and "N samples at a time" on the second task. Is timing the issue?

 

thanks!

 

 


Viewing all articles
Browse latest Browse all 5352

Trending Articles



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