MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

# Thread Subject: USB-6509 in 2008a

 Subject: USB-6509 in 2008a From: Rob Campbell Date: 4 Mar, 2009 00:01:03 Message: 1 of 1 Hi, I'm using 2008a to control an NI USB-6509 board. As suggested here: http://www.mathworks.com/support/solutions/data/1-68VOCU.html?solution=1-68VOCU I added the following to my \$MATLABROOT\toolbox\daq\daq\private\mwnidaqmx.ini [USB-6509] hasAnalogInput = false hasAnalogOutput = false hasDigitalIO = true digitalPortSize = 8,8,8,8,8,8,8,8,8,8,8,8 digitalPortCap = 3,3,3,3,3,3,3,3,3,3,3,3 I can connect to the device and add all the ports lines (12 ports each with 8 lines). However, things don't work as planned. Right now the main problem is that: If I write to port2/line7 (labeled 1 on the NI port diagram) then this seems to also send the signal to port5/line7 (labeled 2). So it's as though lines 1 and 2 are crossed. This seems to work all the way down so 3 and 4 are also crossed. I don't have a hardware problem since the NI test utility works fine. Also, it looks like higher port numbers don't work at all, although I'm not sure from what point they stop working. Anybody know a fix to this? Thanks! Rob