LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error with 2 Daq assistant

Solved!
Go to solution

Hello

 

Another noob joining the community. Here is my question.

What am i doing wrong? I use 2 Daq assistants on the NI9401 module this is for digital input and output. I use it for generating 2 signals. If i test it with 1 it works but if i go to 2 or more it fails. This is the error i get . I have also added the program as an attachment.

 

Thanks in advance.

 

0 Kudos
Message 1 of 6
(3,759 Views)

The attachment didnt go through here is another go.

0 Kudos
Message 2 of 6
(3,756 Views)

Hello,

 

What is the error that you get exactly? When you want to write both digital lines at the same time you can also choose to put them in one DAQ Assistand. I have attahed an example of that. You have to change the channels to your device however.

Let me know if you still have problems with the detailed error info.

 

Regards,

Rik Prins, CLA, CLED
Software Development Engineer
0 Kudos
Message 3 of 6
(3,721 Views)

Hey

 

Thanks for the reply. With this i can only use the NI 9401 for generating signals i need the lines 0-3 to be able to acuire signals and the 4-7 lines need to be able to generate signals. The error i get remains the same its Error - 201133 occured at DAQmx Start Task.vi: 7220008. Since you dont get the error it may have something to do with my configuration of the NI 9401 can you show me how you did it ?

Thanks in advance

 

Wodan

 

0 Kudos
Message 4 of 6
(3,714 Views)
Solution
Accepted by topic author Wodan

Hello,

 

That error means that the DIO task is reserved and cannot be obtained by one of the DAQ assistants. There is actually a nice example program on what you want to do. It can be found here:

 

https://decibel.ni.com/content/docs/DOC-11632

 

This example does not use the DAQ Assistasnt but the DAQmx API VIs (which the DAQ Assistant is using also anyway). If the order is not important (and since the these DIO tasks are software timed it is probably not an issue you can also choose to use the error cluster from one DAQ assistant and wire it to the other (see attached VI). Doing it that way you force one DAQ task to wait for the other one to finish. In that way they cannot run at the same time preventing for the error to happen.

 

regards,

Rik Prins, CLA, CLED
Software Development Engineer
Message 5 of 6
(3,704 Views)

Dear Rik Prins

 

Thanks for the help.

 

Kind regards Wodan

 

0 Kudos
Message 6 of 6
(3,696 Views)