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.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple digital input tasks per device

Solved!
Go to solution

I'm a DAQmx noob here and I've got some general questions regarding Task architecture on a device.  I'm attempting to create two DI tasks each with a portX associated on the same device.  When I attempt to start these tasks the second one always throws a resource error -200022.

 

Can I even have two Digital Input Tasks on the same device?

0 Kudos
Message 1 of 2
(3,041 Views)
Solution
Accepted by topic author BMarley

Not if they are both hardware timed. If you do want to use hardware timng,  combine the channels into a single task.

Message 2 of 2
(3,016 Views)