Discussion:
Legacy or Session Based DAQ for NI PCI-6143
(too old to reply)
Jonas
2011-09-21 21:42:28 UTC
Permalink
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!
Rob Purser
2011-09-23 02:00:24 UTC
Permalink
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
Jonas
2011-09-26 22:26:11 UTC
Permalink
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.
Chitra
2012-02-10 02:44:12 UTC
Permalink
Rob,
Do you know if the 64 bit version supports USB 6008?
Chitra
Post by Rob Purser
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
Loading...