Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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


I'm using 2008a to control an NI USB-6509 board. As suggested here:

I added the following to my $MATLABROOT\toolbox\daq\daq\private\mwnidaqmx.ini

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?


Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us