在 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
该模块位于 PXI 机箱 4294967295 的插槽 4294967295 中。
有人可以建议解决方案吗?这是 daqsupport 的输出, 它也是它生成的文本文件(尽管上面的信息大多是多余的)。
请注意,全新安装 64 位 windows7 会发生这种情况。