I have created two DAQmx tasks using an NI-9403 in my VI. In one task, I have configured some lines as Digital Inputs and in the other task, I have configured different lines as Digital Outputs. I am using Hardware Time for this application. However, when I try to run my code I get the following error:
Error -89137 occurred at DAQmx Start Task .vi:7220001Possible reason (s):Specified route cannot be specified, because it requires resources that are currently in use by another route.
This error is generated by DAQmx Start Task VI when you are trying to use serial modules as the NI-9403 for Hardware Timed Digital Input and Digital Output tasks simultaneously. All the digital lines of this module (and any other serial module) have to be set either as Digital Input or Digital Output at a time.
If you want to run both tasks simultaneously, using serial modules, you will need to use a Software Timed Task. If your application requires a Hardware Time Task, you can use a parallel module as the NI-9401.
A complete list of serial and parallel digital modules can be found here.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.