04-30-2008 10:40 AM
05-01-2008 01:32 PM
05-01-2008 04:35 PM
05-02-2008 05:29 PM
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
http://zone.ni.com/devzone/cda/tut/p/id/3023
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
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.
06-02-2008 10:09 AM
06-04-2008 07:57 AM
06-04-2008 08:20 AM