Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Input aquisition error

Hi,I’m getting this error about the resource is reserved, I’ve searched in the forums, but I haven’t found a solution for my problem. Can anyone help, please.I’ve attached the image error and my project vi. Labview 7.0, PCI-6024E   

Thanks

RTsul
Download All
0 Kudos
Message 1 of 5
(3,304 Views)

Search of 50103 turned up hundreds of results, look at the 1st one here:

 

http://search.ni.com/nisearch/app/main/p/bot/no/ps/10/ap/global/q/50103/

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Message 2 of 5
(3,291 Views)

Hi RTsul,

 

Your VI executes the "true" case of the outer case structure for iterations 0 and 1 of the while loop, not just iteration 0. It would be more straightforward to put the initialization code outside the while loop, and to initialize the shift registers instead of leaving them uninitialized.

 

Brad

---
Brad Keryan
NI R&D
Message 3 of 5
(3,286 Views)

Hi, Brad

 The "true" case of the outer case structure is supposed to execute for iterations 0 and 1 according the inner case. The code is divided in 3 parts according the while loop iteration i=0, i=1 and i>1. I can’t put outside the initialization code because the measurements (amplitude2 and 3) are made inside the while loop.
0 Kudos
Message 4 of 5
(3,260 Views)

Hi,

 

As AK2DM and Brad said, this error occurs due to continuously starting and clearing your DAQmx task in the while loop for an extended period of time. To avoid this problem, configure and start your task once, then call the read/write function in the loop as needed.

For an example on how to do this, take a look at the simple Cont Acq&Graph - Int Clk.vi example. To find the example, launch LabVIEW and go to Help»Find Examples. Browse by task to Hardware Input and Output»DAQmx»Analog Measurements»Voltage.

 

Regards,

Steve M.
0 Kudos
Message 5 of 5
(3,250 Views)