Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

using NIDAQ under Matlab in DIFF, RSE & NRSE modes

Hi, I am trying to use a PCI 6221 NIDAQ under Matlab. I have tried with the NIDAQmx-tool for matlab, but I can not configure the inputs as Differential or single ended non referenced. I believe these routines treat all inputs as single ended ground referenced. Does anybody know how to change this setting?
I know that the new DAQ toolbox accepts the M family of multifunction boards but I do not have access to it...... I would really like to..... well, any suggestion will be wellcomed!!
Regards,
 
Ernesto
 
0 Kudos
Message 1 of 7
(7,059 Views)
Good afternoon Pili,

I'm not positive about this, but it might be worth a shot.  You might be able to go into MAX and configure a Virtual Channel as Differential/RSE/NRSE.  Then, you might be able to call that virtual channel in your function call in MATLAB instead of "Dev1/ai0".  You might be able to call "MyChannel1", or whatever!

Again, I'm not positive.  But, I think that should work!

Cheers!
0 Kudos
Message 2 of 7
(7,046 Views)

Thank you Jeffrey, but it seems that NIDAQmx-tool does not accept virtual channels. I think the only solution for me is the new instrument toolbox from Mathworks.

Regards,

Pili

0 Kudos
Message 3 of 7
(7,023 Views)

Hi,

 

I'm having the same problem of not being able to specify single ended signals.

 

Is there a solution or work-around that has been successfully implemented?

 

Thank you.

 

Herwin

0 Kudos
Message 4 of 7
(6,326 Views)

Same issue... NRSE required, but unable to set from within MATLAB - without falling back to the C library.

 

Will try virtual channel.

0 Kudos
Message 5 of 7
(6,163 Views)

The Data Acquisition Toolbox in MATLAB allows you to set the Terminal Configuration using the property InputType on the channels.

 

http://www.mathworks.com/help/toolbox/daq/ref/channels.html - Using Session-based Interface in DAQ Toolbox

http://www.mathworks.com/help/toolbox/daq/ref/inputtype.html - Using Legacy Interface in DAQ Toolbox

 

Regards,

Manisha

The MathWorks

Message 6 of 7
(6,158 Views)

Excellent - that was exactly the command I was looking for.  Bizarrely we had actually used it 4 years ago, but had managed to forget in the interim.

 

Regards,

0 Kudos
Message 7 of 7
(6,155 Views)