Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Virtual machine 在Windows 7虚拟机中运行NI DAQmx ANSI C示例时出错_Virtual Machine_Data Acquisition_Nidaqmx - Fatal编程技术网

Virtual machine 在Windows 7虚拟机中运行NI DAQmx ANSI C示例时出错

Virtual machine 在Windows 7虚拟机中运行NI DAQmx ANSI C示例时出错,virtual-machine,data-acquisition,nidaqmx,Virtual Machine,Data Acquisition,Nidaqmx,我正在使用VirtualBox运行一个带有Ubuntu14主机的Windows7来宾系统,在运行National Instruments提供的最简单的示例时遇到了一个问题,使用用于NI DAQmx的ANSI C API DAQ设备第一次通电时,我可以运行一次测量,然后,任何其他测量显示以下错误消息: Attempted to read samples that are no longer available. The requested sample was previously availa

我正在使用VirtualBox运行一个带有Ubuntu14主机的Windows7来宾系统,在运行National Instruments提供的最简单的示例时遇到了一个问题,使用用于NI DAQmx的ANSI C API

DAQ设备第一次通电时,我可以运行一次测量,然后,任何其他测量显示以下错误消息:

Attempted to read samples that are no longer available. 
The requested sample was previously available, but has since been overwritten. 
Increasing the buffer size, reading the data more frequently, or specifying 
a fixed number of samples to read instead of reading all available samples 
might correct the problem.

Property: DAQmx_Read_RelativeTo
Corresponding Value: DAQmx_Val_CurrReadPos
Property: DAQmx_Read_Offset
Corresponding Value: 0

Task Name: _unamedTask(0)
Status Code: -200279
为了能够开始新的测量,我必须重新启动DAQ设备,可能是为了清除任何被覆盖的内部缓冲区

我对使用回调函数运行基本的连续电压测量感兴趣。(NI提供的ContAcq_IntClk示例)

在Visual Studio 2012上运行的相同配置、相同版本的NI DAQmx(9.7.5)在直接运行Windows 7的机器上运行平稳

我怀疑问题在于,由于与虚拟机的连接,内部缓冲区以某种方式被弄乱了,但无法找到一个优雅的解决方案来修复它

我使用的设备是NI USB-6289


固定的:

VirtualBox似乎与NI USB设备存在兼容性问题。这似乎是可行的,但不可预测。 VMWare工作得更好。切换到VMWare Player,现在工作完美无瑕