---
% 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