简体   繁体   English

labview daq-mx动态缓冲区大小

[英]labview daq-mx dynamic buffer size

I want to record large amount of data in continuous mode, using a PCI 6110 and DAQ-assistant VI. 我想使用PCI 6110和DAQ辅助VI以连续模式记录大量数据。 At this point, I'm thinking how to dynamically change the buffer size, but I'm not sure if this is possible or if it will affect how data will differ between different sizes of the buffer. 此时,我正在考虑如何动态更改缓冲区大小,但是我不确定这是否可行或是否会影响不同大小的缓冲区之间的数据差异。

labVIEW diagram labVIEW图

At a high rate and high number of samples, after I start the VI, sometimes it returns a buffer overflow error, other times a not enough memory error. 启动VI后,采样率很高且采样数很多,有时会返回缓冲区溢出错误,有时则返回的内存错误不足。 I'd want to know if dynamically changing the buffer size is achievable and how this could be done, or at least to determine a method to find a buffer size that is stable and won't overflow or throw errors during data acquisition. 我想知道是否可以实现动态更改缓冲区大小以及如何做到这一点,或者至少要确定一种方法来找到稳定的缓冲区大小,并且该缓冲区大小不会在数据获取过程中溢出或抛出错误。

For high-performance acquisitions, I recommend using the DAQmx API to configure the device to log directly to disk. 对于高性能采集,我建议使用DAQmx API将设备配置为直接登录到磁盘。 NI calls this "Log to TDMS File" and more information is available here: TDMS Direct Integration in NI-DAQmx Logging . NI将其称为“登录到TDMS文件”,并在此处提供更多信息: NI-DAQmx Logging中的TDMS直接集成

用于将数据记录到TDMS的VI框图

With this approach, you can "stream data to disk reaching speeds up to 1.2 GB/s." 使用这种方法,您可以“将数据流传输到磁盘,速度高达1.2 GB / s”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM