09-05-2006 06:11 PM
09-06-2006 03:32 PM
plindol3,
There are
some possibilities but it is hard to know for sure until we get a little more
information about your setup. Could you
please tell us which digital output lines you are using? The PFI lines for
Counter 0 and 1 are reserved exclusively for counter operations but the PFI
lines for counters 2 - 7 are shared with DIO lines. Could you also post your code so we can see how you are setting up your DAQmx tasks?
Thanks in advance for your reply.
Best
Regards,
Jeff Tipps
Applications Engineer
National Instruments
09-07-2006 06:17 PM
09-08-2006
03:53 PM
- last edited on
07-04-2026
04:14 PM
by
Content Cleaner
Patrick,
I looked at your code and ran it with a scope to see the behavior you are describing. I understand why the problem is ocurring. In your program, you first start 4 counter tasks and then you start 20 digital tasks. Every time a digital task is started, it will reconfigure the entire digital port for output. I would combine the 20 digital tasks into one task and start it before the counter tasks.
Also on a side note, I would recommend that you put the four "DAQmx Is Task Done.vi" vis inside the while loop and use a "stop" button instead of a False constant. This will allow you to perform error handling while the loop is running and you can stop the program with a LabVIEW button instead of the abort button. Hope this helps Patrick.
Best Regards,
Jeff Tipps
Applications Engineer
National Instruments