From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-21-2009 10:13 AM
Solved! Go to Solution.
01-22-2009 03:47 PM
Hey bassinbc!
The reason you are missing samples at higher rates in your files and that you are receiving the error is that you are not writing to file fast enough out of the buffer and are loosing samples as they are overwritten. This KnowledgeBase Article might be able to address the issue in further detail. This error can also occur if you are not reading off the buffer on the DAQ card fast enough, as addressed here. Hope this helps!
Doug
Applications Engineer
National Instruments
01-23-2009 07:51 AM
01-26-2009 05:27 PM
The 80 MHz timebase can be used for the counter / timer source inputs. Generally, the 20 MHz or 100 kHz is used to generate the AI and AO timing signals. This information, and more, can be found in the NI cDAQ-9172 User Guide and Specifications. As such, the issue with the x-axis is most likely due to the fact that it is trying to use a timebase that is too high. In order to read faster, we can increase the number of samples per channel to read with the DAQmx read vi, as suggested by this KnowledgeBase article. Also, you may want to move the DAQ portion of your application towards a producer / consumer architecture, as that can also increase the read rate. There is an example of the producer / consumer architecture at the bottom of the KnowledgeBase article linked above. Also, this DeveloperZone Tutorial has a good explanation of the design pattern.
David
Applications Engineer
National Instruments
01-27-2009 08:54 AM