Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Tasks Synchronization

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

 

DIOs_Sync.png

JimKhertzian_0-1605200850029.png

 

0 Kudos
Message 1 of 3
(1,341 Views)

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.

0 Kudos
Message 2 of 3
(1,304 Views)

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

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 3 of 3
(1,284 Views)