LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -201133 occured at DAQmx Start Task

Hello

I am running into a very strange situation here. I have twice the same installation:

 

Windows XP SP3 PC + 9172 chassis. 9401 module in slot 5. I have configured two tasks in MAX: Task1 is a digital output. Task2 is a counter output.

 

On PC1 I can succesfully launch Task1 and Task2 in MAX. They run simultaneously. No error.

On PC2 I get the following error whatever channel I use for the digital output and the counter (I have tested all combinations !).

Each individual task can be launched alone but not concurrently with the other one.

 

Error -201133 occurred at DAQmx Start Task.vi:2

Possible reason(s):

Device cannot be configured for input or output because lines and/or terminals on this device are in use by another task or route. This operation requires temporarily reserving all lines and terminals for communication, which interferes with the other task or route.

If possible, use DAQmx Control Task to reserve all tasks that use this device before committing any tasks that use this device. Otherwise, uncommit or unreserve the other task or disconnect the other route before attempting to configure the device for input or output.

 

The only difference between the two PC is this:

 

PC1: the workable PC

Labview 8.2.1

MAX 4.6.1

DAQmx 9.0.0

VISA Runtime 4.1

 

PC2: the failing PC

Labview 8.2.1

MAX 5.0.0

DAQmx 9.3.5

DAQmx MAX Configuration Support 9.3.5

VISA Runtime 5.1.0

Traditional NI-DAQ Legacy 7.4.4

 

The installation of PC2 was originally the same as PC1 just that before the test I updated its DAQmx using a CD that was shipped with a new USB chassis that I bought.

 

I do not know what to do to resolve this and in what direction to dig further. In the Labview portion of the project, following recommendations found on the forum I have reserved all my tasks before launching the first of them, but first off I need to be able to execute the tasks in MAX. I have the same problem as what I define in MAX when I execute my Labview application (PC1 ok, PC2 NOK).

 

Thanks a lot for your help

Christophe

0 Kudos
Message 1 of 43
(4,234 Views)

Hello Christophe,

 

Can you send the MAX Report of both systems?

http://digital.ni.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4

 

There are some things I would like you to first try from inside MAX:

- Can you reset the device from inside MAX?

- Can you access its test panels from inside MAX?

- Can you run the application without errors after the reset of the device?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 2 of 43
(4,201 Views)

Hello again and thanks to take my issue into account,

First an answer to your questions:

- Can you reset the device from inside MAX? Yes. After I stop my tasks I can reset the device in MAX.

- Can you access its test panels from inside MAX? Yes I can access the test panels and run a digital output task.

- Can you run the application without errors after the reset of the device? No. The same problem remains after the reset ie. each task can be started individually but both cannot run concurrently. And this only happens in MAX 5.0. No problem with MAX 4.6.1.

 

As per your request I am attaching the log files of both stations.
Thanks for your feedback

Christophe

Download All
0 Kudos
Message 3 of 43
(4,189 Views)

Hello Christophe,

 

For verification I would like to check if this is the exact error you're getting?

http://digital.ni.com/public.nsf/allkb/0495B7D5E2345DF386257730007EFD17?OpenDocument

 

Can you share the code where the problem occurs and the needed tasks?

You can do this by doing the following:

- Open MAX
- Go to File > Export

- Then Export the configuration file.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 4 of 43
(4,187 Views)

Hello again,

 

Yes I confirm this is the exact error that I am getting.

Attached please find the corresponding nce.

 

Thanks

Christophe

0 Kudos
Message 5 of 43
(4,184 Views)

Hello Christophe,

 

I forgot one thing in my last post.

Can you also share the code that you're using?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 6 of 43
(4,179 Views)

The code is purely based on what is stated here http://digital.ni.com/public.nsf/allkb/0495B7D5E2345DF386257730007EFD17?OpenDocument and works with DAQmx version that corresponds to MAX 4.6.1. No more with the version that encloses MAX 5.0.

 

But the question here is not code-related, I am just trying as a first step trying to test it in MAX before go into my code again.

Thanks

Christophe

0 Kudos
Message 7 of 43
(4,177 Views)

Hello Christophe,

 

I understand that you followed the recommendations and I fully believe that you did do everything correctly.

 

However, to be able to fully troubleshoot the issue, I would like to have some code that allows me to reproduce it.

This way I will be able to troubleshoot it and probably find a work-around.

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 8 of 43
(4,168 Views)

I hope this attached file is enough.

In the application we mostly use only two tasks: the Pump_PWM and the DigitalOut. Those 2 are enough to show the issue.

Thanks

Christophe

0 Kudos
Message 9 of 43
(4,164 Views)

Hello Christophe,

 

I have taken a look at the code and I think I might have an idea about where it's going wrong.

To confirm this I would need your exact configuration of the tasks from inside MAX.

 

You can create this the following way:

http://digital.ni.com/public.nsf/allkb/0E0D3D7C4AA8903886256B29000C9D5A?OpenDocument

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 10 of 43
(4,151 Views)