Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

PCI 6229 card is not detected by matlab.

I hope I can find here some help for our problem. My research group is having trouble by getting our new DAQ card to work with Matlab. (R2006b) In Simulink everything is fine but with Matlab we really trouble.
We use a National Instrument PCI 6229 Card and the latest driver of nidaqmx.
But we already get the same failure messages if we try to register the nidaqmx.dll


>> daqregister('nidaqmx')

ans =

'nidaqmx.dll' not found.  Make sure it is on the MATLAB path.

>> daqregister('D:\Matlab\toolbox\daq\daq\private\mwnidaqmx.dll')

ans =

'nidaqmx.dll' not found.  Make sure it is on the MATLAB path.



Also if we run daqhwinfo we receive a failure message.
>> daqhwinfo('nidaq')
Caught unexpected exception of unknown type.
Unexpected error status flag encountered.  Resetting to proper state.



And if we try to receive a signal its even worse.....

>> aimx=analoginput('nidaq','dev1')
??? Error using ==> analoginput.analoginput
Error using ==> analoginput.analoginput>localCreateAnalogInputObject
An unexpected error occurred.


I or better we hope here are some people who can help us.
Because we need to run these card immediately.

Thanks for your help.
0 Kudos
Message 1 of 4
(4,775 Views)
Chris,

I can't help you with your problem but I am hoping you can help me. I also just bought the PCI 6229, but I can't get it to work with Simulink. I also have 2006b.

Can I ask what do you exactly mean by working in simulink? does it work with all the toolboxes in Simulink. My card is ok with the Data Acquisition toolbox, but I can't get it to work with the real-time windows target toolbox. you can see my original message here:

http://forums.ni.com/ni/board/message?board.id=250&message.id=28050

I appreciate if you get back to me on this.


Thanks.

PS. I am trying to do hardware-in-the-loop control....


0 Kudos
Message 2 of 4
(4,770 Views)
Yes you can ask.

What I mean is, that we receive signal from all channels while using REAL TIME WINDOWS TARGET TOOLBOX. I have no problem with that.
As I said my problem is the DAQ Toolbox in Matlab.
0 Kudos
Message 3 of 4
(4,742 Views)

Hi, Wondering if you ever found the source of yoru problem. I am have a similar problem where my daq info cannot be found in Matlab (2007b). I am using a NI PCI 6229 card and have the latest drivers. Daq in labview works fine so I attribute the error with matlab compatibility to the updated drivers because the older drivers and Matlab worked fine before. Note that I had to upgrade the drivers because I switch my OS from Windows XP to 7. 

 

Thank you,

 

Teresa

0 Kudos
Message 4 of 4
(3,267 Views)