0

Matlab 2014b、2014a、2013b、2013a (simulink を使用しない)

Windows7 64 ビット セッション ベースのデータ取得ツールボックス

NI-DAQmx 14.1 および NI-DAQmx 14.0 を使用する

PXI シャーシにあると誤って検出される PCI カードがあります。これにより、実際に取り付けられている PCI カードではなく、存在しない PXI シャーシ カードを誤って参照しているため、次のような操作が失敗します。

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 の新規インストールで発生することに注意してください。

4

1 に答える 1