Matlab数据采集,PCI卡被错误检测为PXI机箱卡

Matlab数据采集,PCI卡被错误检测为PXI机箱卡,matlab,data-acquisition,nidaqmx,daq-mx,Matlab,Data Acquisition,Nidaqmx,Daq Mx,在Matlab 2014b、2014a、2013b、2013a中(不使用simulink) Windows7 64位基于会话的数据采集工具箱 使用NI DAQmx 14.1和NI DAQmx 14.0 我有一个PCI卡被错误地检测到存在于PXI机箱中。这会导致以下操作失败,因为它们错误地引用了不存在的PXI机箱卡,而不是我实际安装的PCI卡 obj.startBackground(),obj.startForeground(), 两者都会产生错误。例如: > close all force

在Matlab 2014b、2014a、2013b、2013a中(不使用simulink)

Windows7 64位基于会话的数据采集工具箱

使用NI DAQmx 14.1和NI DAQmx 14.0

我有一个PCI卡被错误地检测到存在于PXI机箱中。这会导致以下操作失败,因为它们错误地引用了不存在的PXI机箱卡,而不是我实际安装的PCI卡

obj.startBackground(),obj.startForeground(), 两者都会产生错误。例如:

> close all force; daq.reset;
> devID = 'Dev1';
> niIn = daq.createSession('ni');
> niIn.IsContinuous = true;
> aI = niIn.addAnalogInputChannel(devID,[0],'Voltage');
> dI = niIn.addDigitalChannel(devID,{'Port0/Line0'},'InputOnly');
> niIn.startBackground();
> NI Error -89120:
> Source terminal to be routed could not be found on the device.
>
> Make sure the terminal name is valid for the specified device.
> Refer to Measurement & Automation Explorer for valid terminal
> names.
> Property: DAQmx_RefClk_Src
> Source Device: Dev1
> Source Terminal: PXI_CLK10
>
> Task Name: _unnamedTask<1D1>
>
> Status Code: -89120
Looking at the output of daq.getDevices points to a problem with the incorrect recognition:

> daq.getDevices()
>
> ni: National Instruments PCI-6251 (Device ID: 'Dev1')
>    Analog input subsystem supports:
>       7 ranges supported
>       Rates from 0.1 to 1000000.0 scans/sec
>       16 channels ('ai0' - 'ai15')
>       'Voltage' measurement type
>
>    Analog output subsystem supports:
>       -5.0 to +5.0 Volts,-10 to +10 Volts ranges
>       Rates from 0.1 to 2857142.9 scans/sec
>       2 channels ('ao0','ao1')
>       'Voltage' measurement type
>
>    Digital subsystem supports:
>       Rates from 0.1 to 10000000.0 scans/sec
>       24 channels ('port0/line0' - 'port2/line7')
>       'InputOnly','OutputOnly','Bidirectional' measurement types
>
>    Counter input subsystem supports:
>       Rates from 0.1 to 80000000.0 scans/sec
>       2 channels ('ctr0','ctr1')
>       'EdgeCount','PulseWidth','Frequency','Position' measurement
> types
>
>    Counter output subsystem supports:
>       Rates from 0.1 to 80000000.0 scans/sec
>       2 channels ('ctr0','ctr1')
>       'PulseGeneration' measurement type
>
> This module is in slot 4294967295 of the PXI Chassis 4294967295.
>
> Properties, Methods, Events
>关闭所有力;daq.reset;
>devID='Dev1';
>niIn=daq.createSession('ni');
>niIn.IsContinuous=真;
>aI=niIn.addAnalogInputChannel(设备,[0],“电压”);
>dI=niIn.addDigitalChannel(devID,{'Port0/Line0'},'InputOnly');
>niIn.startBackground();
>NI错误-89120:
>在设备上找不到要路由的源终端。
>
>确保终端名称对指定的设备有效。
>有关有效终端,请参阅测量和自动化浏览器
>名字。
>属性:DAQmx_RefClk_Src
>源设备:Dev1
>源终端:PXI_CLK10
>
>任务名称:\u未命名任务
>
>状态代码:-89120
查看daq.getDevices的输出,会发现错误识别的问题:
>daq.getDevices()
>
>ni:National Instruments PCI-6251(设备ID:'Dev1')
>模拟输入子系统支持:
>支持7个范围
>速率从每秒0.1到1000000.0次扫描
>16个通道(“ai0”-“ai15”)
>“电压”测量类型
>
>模拟输出子系统支持:
>-5.0至+5.0伏,-10至+10伏范围
>速率从0.1到2857142.9扫描/秒
>2个通道(“ao0”和“ao1”)
>“电压”测量类型
>
>数字子系统支持:
>速率从0.1到10000000.0扫描/秒
>24个通道('port0/line0'-'port2/line7')
>“InputOnly”、“OutputOnly”、“双向”测量类型
>
>计数器输入子系统支持:
>速率从0.1到80000000.0扫描/秒
>2个通道(“ctr0”和“ctr1”)
>“边缘计数”、“脉冲宽度”、“频率”、“位置”测量
>类型
>
>计数器输出子系统支持:
>速率从0.1到80000000.0扫描/秒
>2个通道(“ctr0”和“ctr1”)
>“脉冲产生”测量类型
>
>此模块位于PXI机箱4294967295的插槽4294967295中。
>
>属性、方法、事件
此模块位于PXI机箱4294967295的插槽4294967295中。

有人能提出解决办法吗?它也会生成文本文件(尽管上面的信息大多是多余的)


请注意,新安装的64位windows7会出现这种情况。

将我的驱动程序回滚到NI DAQmx 9.8可解决所有测试版本的Matlab(2013a-2014b)的此问题