LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Will USB-6251 execute multiple tasks at the same time?

Hi all,
 
I have an application controling an experiment and logging data using a USB 6251. One measurement uses Two Edge Seperation , and takes a while to complete (20 to 30 seconds). Meanwhile I need to execute another task repeatedly to sense a digital input pin. Does anyone know if the USB 6251 can execute a second task while it's busy doing the edge seperation task? So far I haven't found anything in the documentation or on the forums.
 
BTW I can't just 'try it and see', or at least it's very tricky to do so. The control system is at the top of a scaffold tower, a long way from my development system. Every code change has to be deployed and installed to test it.
 
I recomend you avoid such an installation if you can  🐵  It makes for a tough time debugging.
 
Thanks for any help.
 
Bandit.

Message Edited by Bandit on 03-20-2007 12:05 PM

0 Kudos
Message 1 of 5
(2,853 Views)
Hi Bandit
 
I do not see why this should be a problem. You can execute two tasks together as long as they are not accessing the same channels or digital lines. When you execute a task it will 'reserve' the use of the specified channel or task. I f another task attempts to access this channel or line it will cause LabVIEW to throw up an error.
 
Hope this helps!
 
Kindest Regards
 
YatinM
NIUK & Ireland
Applications Engineer
Message 2 of 5
(2,824 Views)

Thanks Yatin. It's always nice to get an answer, and even nicer when it's the answer you wanted to hear.Smiley Very Happy

Best Regards,

Bandit.

0 Kudos
Message 3 of 5
(2,819 Views)

A small addition to YatimM's answer


You can execute two tasks together as long as they are not accessing the same channels or digital lines.

For acquisiton on analog input channels, you cannot execute 2 tasks simultaneously even if they scan for 2 seperate sets of channels

For Ex: task 1: acquiring from analog channels 0 to 3 and task2 : acquiring from analog channels 4 to 6, will still give a 'device reserved' error, because a single ADC is available and used for multiplexing all channels in a task/ scan list and the second task will give up this error

Message 4 of 5
(2,809 Views)

Thanks for that devchander, I don't think it's a concern in my application but I'll check through my code to make sure.

It's certainly worth bearing in mind in the future.

Bandit.

0 Kudos
Message 5 of 5
(2,804 Views)