LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Al Control Error

Upon the finishing of the 'for' loop I get the following error --
"10608 occured at Al Control
NI-DAQ : No transfer is in progress for the specified resource"

I get this error message, however, there is no error in the way data is obtained or saved. I know that if I get ride of the error handler, then this will not pause my execution at the end of each for loop. But it would be nice to keep it in my program so that if I get a error that effects my desired data aquisition I would know about it. If anyone knows why I am getting this error message and can help me get ride of it, it would be greatly appreciated.

Thanks,
Travis
0 Kudos
Message 1 of 5
(2,914 Views)
In your while loop, you are performing two functions with your DAQ card (device #1): a buffered acquisition, and a non-buffered acquisition. You can't perform both of these at the same time. I suspect that you're setting up the buffered acquisition, then one of your non-buffered acquisitions runs, which sets up the card again. This will interrupt your buffered acquisition, giving you this error.

You will either have to make your single point (non-buffered) acquisitions part of your buffered acquisition, and just look at a single point in the buffer to get your values, or you'll have to put your DAQ VI's in a sequence such that you don't perform both at the same time.

Mark
0 Kudos
Message 2 of 5
(2,914 Views)
Besides Mark's great answer, I would move the AI Config and AI Clear to outside of all of the loops. Unless you need to change the channels or some other parameter, there's no reason to do the config on every iteration.
0 Kudos
Message 3 of 5
(2,914 Views)
I had originally put them outside the loops, but I moved them inside when I was getting the error because I didn't know what was causing it. I just left them inside since I didn't think it made a difference. I'll move them back out though, thanks.

Travis
0 Kudos
Message 4 of 5
(2,914 Views)
Thanks, I understand what I was doing wrong now. I had thought that I was getting this error before I added the single point (non-buffered) acquisitions, but I just re-ran one of my early saves and I didn't recieve the Al Control error.

Thanks again,
Travis
0 Kudos
Message 5 of 5
(2,914 Views)