From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multi Channel Data Acquisition using PXI-6143

 

Hi all

 

I can acquire one channel data and am trying multi channel data acquisition using PXI-6143.

And I made attached code.

But in this code, the signal in ch1 is acquired and in ch2 is not acquired. Why?

 

FrontPanel.pdf is the front panel of this code during operating.

AI1 and AI2 are input same signal 1Hz sine function.

 

I'm grad if you teach me the solution.

 

0 Kudos
Message 1 of 9
(2,557 Views)

You don't mention it but you are certainly getting a resource reserved error. Search the forum for the message or code or simply fix it by using a single task with multiple channels.

Message 2 of 9
(2,547 Views)

 Thank you for your comment.

What is reserved error?

That means errors are not indicated but occured?

0 Kudos
Message 3 of 9
(2,538 Views)
No. You are getting an error and it will be indicated when the loop stops and your error handler is called.
Message 4 of 9
(2,528 Views)

 

I improved the code as attached file by referencing this and it came no errors.

0 Kudos
Message 5 of 9
(2,523 Views)
You did not attach anything.
Message 6 of 9
(2,521 Views)

 The file is attached on my original post!

0 Kudos
Message 7 of 9
(2,512 Views)
That code is wrong! You simply cannot have two separate tasks. Change it. The only correct method is to specify both channels such as dev1/ai0:1. You should NOT expect an error message to pop up when the loop is running.
Message 8 of 9
(2,507 Views)

 

Thank you for your comment.

 

When the code was run without a function generator, no error was occured.

But when the code was run with a function generator, an error was occured.

 

Thank you and I will try to resolve this problem!

0 Kudos
Message 9 of 9
(2,447 Views)