PCI Card incorrectly detected as in a PXI chassis

4 views (last 30 days)
In Matlab 2014b,2014a,2013b,2013a (not using simulink) Windows7 64-bit session based data acquisition toolbox Using NI-DAQmx 14.1 and NI-DAQmx 14.0
I have a PCI card that is being incorrectly detected as being present in a PXI chassis. This causes operations such as the following to fail as they are incorrectly referencing the nonexistent PXI chassis card instead of my actually installed PCI card.
obj.startBackground(), obj.startForeground(),
Both generate errors. For example:
> 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
*This module is in slot 4294967295 of the PXI Chassis 4294967295.*
Could somebody please advise a solution? I have attached the output of daqsupport as the text file it generates as well (although it is mostly redundant with above information).
Note, I have contacted mathworks support, but am trying to resolve this as soon as possible. Technical Support Case #01125231

Accepted Answer

Stephen
Stephen on 29 Oct 2014
In order to solve this for all tested versions of matlab, I needed to use NI-DAQmx 9.8.

More Answers (2)

Siddharth
Siddharth on 14 Jan 2015
Actually there is a way to run this on the latest NI version, the solution is posted in the link below
I just got the same error and was researching it, thought you would like to know
sid

CUEIRB22
CUEIRB22 on 5 Mar 2015
I had the same problem when I tried to make some session-based programming with my NI PCI card. I downgraded from NI DAQmx 14.0 to 9.8.0 and it works as Stephen advised.
It would be fine to fix that bug, to be able to use NIDAQmx 14 instead of 9.8 ...
Kind Regards

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!