04-27-2025 02:21 PM
Hi everyone,
I'm relatively new to LabVIEW and working on a project where I need to log high-frequency sensor data (around 10 kHz sampling rate) into a file while also displaying some real-time plots. I'm running into performance issues where either the UI lags badly, or the data logging misses samples. What’s the best approach to handle high-speed data logging and visualization without overloading the system? Should I separate acquisition, logging, and visualization into different loops, or are there specific design patterns recommended by the community for this kind of application? Would appreciate any tips, examples, or lessons learned. Thanks!
Some resources I found while researching:
https://www.youtube.com/watch?v=6aBM5Wckd94
https://www.theengineeringprojects.com/2022/11/introduction-to-labview.html
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kHXmSAM
https://forums.ni.com/t5/LabVIEW/Producer-Consumer-Architecture-Example/td-p/3757455
04-28-2025 12:50 AM
Hi aria,
@aria028 wrote:
What’s the best approach to handle high-speed data logging and visualization without overloading the system? Would appreciate any tips, examples, or lessons learned. Thanks!
Use the TDMS logging as built into DAQmx for easiest data logging in parallel to your GUI handling.
Combine this with decimating data before displaying as you don't need to show 10kS/s on a tiny UI graph…
04-29-2025 08:22 AM
From the LabVIEW Getting Started Window:
LabVIEW uses ~1% of my desktop cpu resources to acquire, log, and display 4 channels continuously at 12.8 kS/Ch/s.
Let us know if this sample project gets you where you need to be.