Thread Subject: NI 6008 - Windows 7 (64bit) - Daq problems

Subject: NI 6008 - Windows 7 (64bit) - Daq problems

From: Chitra

Date: 10 Feb, 2012 00:13:13

Message: 1 of 4

Hi!
I am having problems while using a NI 6008 with windows 7 (64 bit) and communicating via Matlab R2011a. It came originally with a driver NIDAQmx 9.0.2

I believe based on the messages I am getting,

a. I cannot use the daqhwinfo with Matlab 64 bit and should create a session instead.
 session = daq.createSession ('vendor')
b. When creating session described in 1, I am getting an error because the driver is 9.0 instead of 9.1

When I used
 v = daq.getVendors
I am getting a
 DriverVersion: '9.0 NI-DAQmx'
 IsOperational: false

with a message that I need at least a NI-DAQmx 9.1 driver with this. ( I am sorry, I do not have the exact output at this time).

I also read somewhere that these errors have been fixed in R2011b. (Reference:
http://mathforum.org/kb/message.jspa?messageID=7565343&tstart=0)

In this light, please confirm what I need to be doing:
In particular, should I be:
1. Upgrading to Matlab R2011b ?
2. Installing a driver that is at least NI-DAQmx 9.1?

The cd that comes with the usb contains all the NI software that includes NI VISA. NI VISA is a large installation and I am planning to control the USB via Matlab. If NI Visa is not needed, I do not want to install it.

What do you think is an absolute must-have installation to make it work with Matlab?

3. Creating a session for working with the usb 6008?
 
Thanks
Chitra

Subject: NI 6008 - Windows 7 (64bit) - Daq problems

From: Mike

Date: 10 Feb, 2012 05:01:27

Message: 2 of 4

THis is what I get from 2011b 32 bit:
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 v = daq.getVendors

v =

Data acquisition vendor 'National Instruments':

            ID: 'ni'
      FullName: 'National Instruments'
AdaptorVersion: '3.0 (R2011b)'
 DriverVersion: '9.3.5 NI-DAQmx'
 IsOperational: true

Properties, Methods, Events
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
was your DAQ turned on and connected before you started matlab? If not, matlab does not recognize the DAQ. You have to restart matlab with the DAQ connected and on.

Subject: NI 6008 - Windows 7 (64bit) - Daq problems

From: Chitra

Date: 14 Feb, 2012 15:04:46

Message: 3 of 4

 Hi Mike
Thanks for your reply.

My USB is working right now, it is being recognized.

1. Installed a new device driver for my USB. 9.3mx.
2. Upgraded Matlab R 2011a to Matlab R2011b with Data acquisition toolbox 3.0

For those who might need help with this, these links might be useful. I found these while researching this topic.

http://joule.ni.com/nidu/cds/view/p/id/2339/lang/en (driver 9.3mx)
http://zone.ni.com/devzone/cda/tut/p/id/6913#usb
http://www.mathworks.com/products/daq/supportedio14005.html#USB

Now the error I am getting is related to the fact that my PC is Windows 7, 64 bit and the legacy software commands such as daqhwinfo do not work. I am converting my code to the "session based interface" - I really wish I had known this requirement about the 64 bit. I was assuming based on the last link above that USB 6008 is compatible with S and L (Session based and Legacy both) but turns out it is not.. It might be compatible with 32 bit, but it is not compatible with 64 bit.

-Chitra

> was your DAQ turned on and connected before you started matlab? If not, matlab does not recognize the DAQ. You have to restart matlab with the DAQ connected and on.

Subject: NI 6008 - Windows 7 (64bit) - Daq problems

From: Chitra

Date: 14 Feb, 2012 15:04:46

Message: 4 of 4

 Hi Mike
Thanks for your reply.

My USB is working right now, it is being recognized.

1. Installed a new device driver for my USB. 9.3mx.
2. Upgraded Matlab R 2011a to Matlab R2011b with Data acquisition toolbox 3.0

For those who might need help with this, these links might be useful. I found these while researching this topic.

http://joule.ni.com/nidu/cds/view/p/id/2339/lang/en (driver 9.3mx)
http://zone.ni.com/devzone/cda/tut/p/id/6913#usb
http://www.mathworks.com/products/daq/supportedio14005.html#USB

Now the error I am getting is related to the fact that my PC is Windows 7, 64 bit and the legacy software commands such as daqhwinfo do not work. I am converting my code to the "session based interface" - I really wish I had known this requirement about the 64 bit. I was assuming based on the last link above that USB 6008 is compatible with S and L (Session based and Legacy both) but turns out it is not.. It might be compatible with 32 bit, but it is not compatible with 64 bit.

-Chitra
> &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
> was your DAQ turned on and connected before you started matlab? If not, matlab does not recognize the DAQ. You have to restart matlab with the DAQ connected and on.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
usb 6008 Chitra 9 Feb, 2012 19:14:18
64 bit Chitra 9 Feb, 2012 19:14:18
matlab Chitra 9 Feb, 2012 19:14:18
r2011b Chitra 9 Feb, 2012 19:14:18
driver Chitra 9 Feb, 2012 19:14:18
data acquisition Chitra 9 Feb, 2012 19:14:18
session based i... Chitra 9 Feb, 2012 19:14:18
rssFeed for this Thread

Contact us at files@mathworks.com