Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DAQ Line Configurable vs. Port Configurable

0 views
Skip to first unread message

Michael Gustafson

unread,
Sep 15, 2008, 11:28:02 PM9/15/08
to
We've just switched to MATLAB 7.4.0 (R2007a) and have the daq toolbox 2.10 installed. We have been using NI PCI 6014 cards for about five years, and I have *just* run into a problem with the digital lines - specifically:

---
% Clear out workspace
clear

% Clear out DAQ object
delete(daqfind)

% Create Digital I/O Object
DIO = digitalio('nidaq', 1)

% Add output lines to Digital I/O Object
DOutputs = addline(DIO, 0:2, 'out')
% Add input lines to Digital I/O object
DInputs = addline(DIO, 4:6, 'in')
---

used to be perfectly happy configuring lines 0, 1, and 2 for output and the other three for input. *Now* I get

---
Warning: Port is not line configurable. All line directions on the port have been set

---
when the last line of code runs and all six lines convert to outputs. This is a disaster of a rather epic nature if I can't get this fixed! (epic = 360 people to run this lab this week). How can I convince the "upgraded" MATLAB to me more flexible? Here's the daqhwinfo information:

---
>> dhw = daqhwinfo(DIO)

dhw =

AdaptorName: 'nidaqmx'
DeviceName: 'PCI-6014'
ID: '1'
Port: [1x1 struct]
SubsystemType: 'DigitalIO'
TotalLines: 8
VendorDriverDescription: [1x35 char]
VendorDriverVersion: '8.0'

>> dhw.Port(1)

ans =

ID: 0
LineIDs: [0 1 2 3 4 5 6 7]
Direction: 'in/out'
Config: 'port'
---

And yet, in all the documentation I have found, Port 0 is *supposedly* line configurable. Help???

Thanks -

Michael


Michael Gustafson

unread,
Sep 16, 2008, 1:16:02 AM9/16/08
to
Discovered an answer - buried in a help file there is mention of the fact that the MX drivers for National Instruments will *not* allow for line configuration... So after rolling all the MX 8.0 drivers back to the Traditional 7.4 drivers, running measurement and automation from NI, and *then* running daqhwinfo('nidaq') in MATLAB, I am back to having line-by-line control control of the NI PCI 6014. Both crisis and sleep have been successfully averted! -G
0 new messages