Live Plotting while Acquiring Data without losing the data (NI USB-6009)
이전 댓글 표시
Hi,
I am not totally sure how to ask the question I have as I am kind of thrown into data acqusition area without any prior knowledge of theory or practice.
I am using Data Acquisition toolbox to collect voltage data using NI USB-6009 using an analog input. I need to store this data in an array AND display it real-time while data is being acquired. I found following documentation:
Using this, I can create a live plot via assigning the function handle to dq.ScansAvailableFcn. However, as the function reads the data, the buffer is emptied, and I can not figure out a way to retain it. Is there a way to use the read function without deleting the acquired data (so I can read all at the end of the background process while showing it)? Or better yet, am I even asking the right question?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Data Import and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!