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!