Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

changing input range on ni usb6009 in matlab

I am using the usb6009 DAQ board to acquire data from both a force sensor and EMG (electromyogram) in MATLAB simultaneously.  It is working properly except I for some reason cannot change the input range from [-10 10] volts.  When querying MATLAB about possible input ranges it gives many different ranges ([-1 1], [-5 5], etc) as I would expect, but for some reason will not allow me to change to any of these values.  Anybody have a similar issue or can give me some insight?  TYVM

0 Kudos
Message 1 of 2
(3,436 Views)

Hi,

 

You can try the following: 

s = daq.createSession('ni');

s.addAnalogInputChannel('Dev1',0:1,'Voltage')

set(s.Channels,'InputType','Differential')

set(s.Channels,'Range',[-10 10])

 

See documentation on InputRange for more details.

Sev K.
Senior Systems R&D Engineer | Wireless | CLA
National Instruments
0 Kudos
Message 2 of 2
(3,420 Views)