LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI-6025E: How to read multiple analog channels inside a while loop continuously

Hi,

I have a PCI-6025E data acquisition device and I use LV 7 Express and NI-DAQmx 7. I would like to know how can I read multiple analog channels from it. I want to read them continuously inside a while loop. How can I do this? can anyone post here an example using DAQmx?

I have done two examples, the first, provalecturasondes2.vi works well a few seconds and then I get the error provalecturasondes2_error.vi. And the same for the provalecturasondes3.vi, I get the error provalecturasondes3_error.vi. What's the problem?

Please, help me.

Thanks.
0 Kudos
Message 1 of 3
(2,712 Views)
Sorry,

I forgot to post the provalecturasondes3_error.vi


Thanks.
0 Kudos
Message 2 of 3
(2,707 Views)

Hi,

 

The while loop should only be around the read function. With the create channel and timing vi's u configure the channel and the buffer (in the memory of t he pc) where the board will insert the data. Then the only thing u have to do continously is to read from that buffer to avoid overflow.

See attached image as example.

 

(if u still have problems make a reset device of your board from max).

Regards,

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 3 of 3
(2,655 Views)