05-21-2014 02:44 AM
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.
Solved! Go to Solution.
05-21-2014 02:46 AM
The attachment didnt go through here is another go.
05-22-2014 02:23 AM
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,
05-22-2014 02:49 AM
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
05-22-2014 03:22 AM - edited 05-22-2014 03:22 AM
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,
05-22-2014 03:47 AM
Dear Rik Prins
Thanks for the help.
Kind regards Wodan