【问题标题】:Matlab Data Acquisition, PCI card incorrectly detected as a PXI Chassis cardMatlab 数据采集,PCI 卡被错误地检测为 PXI 机箱卡
【发布时间】:2014-10-29 17:38:34
【问题描述】:

在 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 中。

有人可以提出解决方案吗? Here is the output of daqsupport 也是它生成的文本文件(尽管上面的信息大多是多余的)。

请注意,全新安装 64 位 windows7 会发生这种情况。

【问题讨论】:

    标签: matlab data-acquisition nidaqmx daq-mx


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-05-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多