PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

adlink daqpilot not working in subvi (DAQ/PXI-2204)

Using DAQpilot from Adlink

in Labview 2010 / windows 7

 

I want to do n-channels, n-scans, single shot in a while loop

 

The configuration is as follows: (see also attached task)

 

-installed device: DAQ/PXI-2204:0

-n-chs: 0-31 differential

-10.000 Hz

-30.000 scans

-scaled data in 2D array

 

The DAQ pilot runs once and continously in a sub vi:

 task 2.jpg

 

It also works when I place the task in a loop.

 

But when I use it in a sub vi which is called from another vi in a loop it work the first cycle and the second not, third ok, fourth not. see diagram below:

loop.jpg

following error message:

 

 errormessage.png.jpg

 

 

Download All
0 Kudos
Message 1 of 2
(4,582 Views)

Hello!!!

 

You do not need to put the "Configuration Parameters Setting" inside a loop.

These configuration are needed just one time.

 

If you want to change these parameters for other acquistion, you can put these steps inside a case structure and when you need to change those configurations values you've just to call the "Configuration Case" and do it before the new acquisition starts.

 

The acquisition need to be continuous, not the configuration.

 

You can found code examples on this link below:

www.ni.com/code

 

Hope this helps,

Regards.

Barbara Pracek
Engenharia de Aplicações
National Instruments Brasil

0 Kudos
Message 2 of 2
(4,519 Views)