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:
Legacy or Session Based DAQ for NI PCI-6143

Subject: Legacy or Session Based DAQ for NI PCI-6143

From: Jonas

Date: 21 Sep, 2011 21:42:28

Message: 1 of 4

Hello All,

I'm working on interfacing a National Instruments PCI-6143 DAQ (with BNC-2110 connector block) with Matlab. I'm currently using Matlab 2011a 64-bit with Windows 7 64-bit.

When I try to use legacy commands, it says I cannot on a 64-bit Windows system. Other Mathworks documents, however, seem to suggest that it is only a 32-bit version of Matlab that I need (which I have access to). Which is it?

It says at http://www.mathworks.com/products/daq/supportedio14005.html that the PCI-6143 is supported by the session-based interface. However, it says in the help file that only CompactDAQ devices are to be used with the session-based interface. Am I missing something there?

I'm anticipating using digital I/O on my DAQ. Apparently this is only supported in the legacy interface. Is this so, or is this functionality contained in, for example the counter/timer input and output functionality?

Finally, I've attempted to run this with the session-based interface, with little luck so far. daq.createSession seems to work, but when I query daq.getDevices to get info for adding a channel, it says no devices are available. The DAQ is working with the NI MAX software. Am I using the session-based interface incorrectly?

Thanks!

Subject: Legacy or Session Based DAQ for NI PCI-6143

From: Rob Purser

Date: 23 Sep, 2011 02:00:24

Message: 2 of 4

Hi,

What version of MATLAB? This is all evolving quickly. Using the legacy interface only works on 32-bit MATLAB, which can be used on both 32-bit and 64-bit Windows. If you want to use 64-bit MATLAB, you'll have to use the Session-based interface. The session based interface has been expanded to support many more NI devices in the current release. Originally, it only supported CompactDAQ.

-Rob

Subject: Legacy or Session Based DAQ for NI PCI-6143

From: Jonas

Date: 26 Sep, 2011 22:26:11

Message: 3 of 4

Thanks for your reply.

It's MATLAB 2011a 64-bit. I've managed to get it to work fine with MATLAB 2011a 32-bit, so that should be okay for now.

Subject: Legacy or Session Based DAQ for NI PCI-6143

From: Chitra

Date: 10 Feb, 2012 02:44:12

Message: 4 of 4

Rob,
Do you know if the 64 bit version supports USB 6008?
Chitra


"Rob Purser" <rob.purser@mathworks.com> wrote in message <j5gp7o$2m4$1@newscl01ah.mathworks.com>...
> Hi,
>
> What version of MATLAB? This is all evolving quickly. Using the legacy interface only works on 32-bit MATLAB, which can be used on both 32-bit and 64-bit Windows. If you want to use 64-bit MATLAB, you'll have to use the Session-based interface. The session based interface has been expanded to support many more NI devices in the current release. Originally, it only supported CompactDAQ.
>
> -Rob

Tags for 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