LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Handling High-Speed Data Logging and UI Responsiveness in LabVIEW

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

 

0 Kudos
Message 1 of 3
(336 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(284 Views)

From the LabVIEW Getting Started Window:

  1. Launch the Create Project Wizard
  2. Select the Continuous Measurement and Logging (NI-DAQmx)
    dsbNI_0-1745932584774.png

     

  3. Give your project a unique name, and Finish. 
  4. LabVIEW will copy all the files you need into your project.
  5. You are ready to Run!

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.

 

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 3 of 3
(242 Views)