11-12-2020 12:15 PM - edited 11-12-2020 01:06 PM
Hello guys.
I thought I understood how to synchronize two DAQmx tasks together but I'm not so sure anymore, when running the code below I get the error -89137:Specified route cannot be satisfied, because it requires resources that are currently in use by another route.
I'm using NI 9403 DIO Module on on NI cDAQ-9174.
What am I missing? The goal is just to read inputs at the same time other DIOs are being written.
Cheers,
Jimmy
11-12-2020 03:29 PM
Hello,
just found out that I did not completely read the first page of the datasheet. It clearly says "Due to the serial transfer of data, you cannot use these modules to route timing or triggering signals." So I tried using no clock and it works fine with two tasks running in parallel. The "SW-timed" examples provided does exactly what I need. It's just I need to design my loops to make sure they take less than 7µs to execute.
11-12-2020 07:34 PM
Sorry to say, but you're not in the clear yet. There's *no way* you're gonna get anywhere near 100+ kHz software loop rates when doing software-timed DIO with a USB-connected device.
You're going to need hardware clocking so you'll probably need to get a different module that supports it. Just letting you know before you spend weeks banging your head against a wall.
-Kevin P