LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simple DAQ problem

 
Dear Sirs/Madams,
 
I'm trying to take N voltage readings from a single channel on a BNC aquisition board/PCI-6251 (multiple channels will be later) - and I get some kind of error message which I don't understand. The code and error message are attached.
 
Thank you for your help.
Download All
0 Kudos
Message 1 of 3
(2,203 Views)

 

 

Ok - I think the answer is to put all the code in the For Loop. That works but I'm not sure that it's not messy.

0 Kudos
Message 2 of 3
(2,200 Views)

Hello Raff,

The problem is that you have a 'Clear Task' function in the for loop. This means that the second time the loop iterates, the Task reference you have specified as a tunnel on the left hand side is no longer valid.

Just move this 'Clear Task' function to outside the for loop, and this should solve the problem.

Putting all the code in the for loop will make it work, but will give extra unnecessary overhead.

I hope this helps
Regards
Hannah
NIUK & Ireland

Message 3 of 3
(2,175 Views)