01-06-2008 01:45 PM
01-07-2008
02:47 PM
- last edited on
10-03-2025
08:32 AM
by
Content Cleaner
Hello jeries,
It is possible that issue relates to your system performance and the limitation you are seeing is due to performing at the upper limit of your systems capabilities. To check on this, I would recommend that you open the Windows Task Manager and examine the CPU usage when the program is running. Does it appear to stay very high during execution? If the CPU usage is high, you may want to examine this KnowledgeBase which discusses high CPU usage with NI-DAQmx. You did not say what driver you are using, but based on the fact that you mentioned the DAQ Assistant I assumed you are using NI-DAQmx.
To help determine whether this issue is related to system performance or program structure, I would recommend that you build up from a simple program to determine when the issue starts to occur. You mention that the code was attached, but I do not see any attachments to your post. You may want to try again, attachments can be removed if you preview your post, so you may want to make sure that everything is attached and posted correctly. Other than looking at your code, I would recommend that you start with shipping examples that come with the driver to see the best programming practice. Specifically, I think the following order would help with this issue:
1. Run the Cont Acq&Graph Voltage-Int Clk.vi example from the NI Example Finder to collect 4 channels of data at the sample rate you require. You can find the NI Example Finder by going to Help>>Find Examples... in LabVIEW.
2. If the example from step 1 runs without missing any data, run the example called Cont Acq&Graph Voltage - Write Data to File (TDMS).vi. This example writes data to a TDMS file, which is the streaming format of NI's Technical Data Management (TDM) data model. To find out more about TDMS, you can view this tutorial online.
3. If the example from step 2 runs without missing any data, you can try to add the Write to Measurement File Express VI to the Cont Acq&Graph Voltage-Int Clk.vi example from step 1. The express VI has more overhead than the TDMS VIs, and will run slower than these low level VIs.
4. If the modified example mentioned in step 3 runs without missing any data, you can add the analog output express VIs to the same code to determine if that may be the reason for the missed samples.
If you continue to have problems, post back and let us know where exactly you're running into the issue.