ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
04-30-2008 10:40 AM
05-01-2008
01:32 PM
- last edited on
04-10-2026
08:51 AM
by
Content Cleaner
Hey Vasilich2004,
I am not clear on what exactly you are doing that is causing the problem and how you are receiving the errors? When you are initializing your tasks, what error does LabVIEW give you? Can you post a screenshot?
Also, I am not seeing any reference to a Set Width parameter in the 6711 user manual or seeing anything about changing it on the fly. I have attached a link to the manual below. Can you post a screenshot of your VI? Maybe this will better help explain why your pulse is being restricted to 75ms.
PCI-6711 User Manual
https://www.ni.com/docs/en-US/bundle/ni-6711-6713-6722-6723-6731-6733-features/resource/370735f.pdf
05-01-2008 04:35 PM
05-02-2008
05:29 PM
- last edited on
04-10-2026
08:52 AM
by
Content Cleaner
Hey Vasilich2004,
Your code is very hard for me to follow because there is so much of it. I would highly suggest making your code more modular especially with some of the measurement calculation functions by using sub VI's. This will make your code much more readable and easier to debug.
You should have no problems running 2 counters tasks and an analog input task at the same time even when they are all configured to use DMA. I think you are having problems doing this due to the implementation of your code. I was not able to run your code and therefore could not reproduce the error message you are seeing. Can you provide a screenshot or simplified example that shows this error?
I also think the 75 ms restriction may be due to your while loop. This is why the test program you mention works, but your main VI does not. Remember that everything in the loop must be executed before it moves on to the next iteration. Also, because of LabVIEW dataflow, VI’s in the loop will not execute until others are finished executing. If the entire loop takes 75 ms to execute, then the loop will only execute once every 75 ms. This means your counter read may not execute until your AI read is done. Writing to file will also slow us down even more. I would suggest separating your DAQ tasks out into parallel loops and using the produce/consumer loop architecture to process the measurements.
Application Design Patterns: Producer/Consumer
https://www.ni.com/en/support/documentation/supplemental/21/producer-consumer-architecture-in-labvie...
Let me know if you have further questions.
Regards,
05-29-2008 01:11 PM
05-29-2008 01:14 PM
06-02-2008
08:32 AM
- last edited on
04-10-2026
08:53 AM
by
Content Cleaner
Hello,
I realize that the linked KnowledgeBase (KB) is in reference to E series devices. However, a common timing system is used in the PCI 6711 that relates to the known issue. Please refer to the following KB for reference. You seem to already be on the right track by starting the AI prior to the counter task in the posted code.
KnowledgeBase 2ZKDKLB9: NI-DAQmx Error -200079 Returned While Performing Counter and Analog Output Tasks [broken link removed; article no longer available]
06-02-2008 10:09 AM
06-04-2008 07:57 AM
06-04-2008 08:20 AM