The problem is that in ni_m_series_load_channelgain_list config_bits
is not reset to 0 in the loop over the channels.
Steve D Sharples <steve.sharples@nottingham.ac.uk>
Joe Smith <jes@presto.med.upenn.edu>
Anne Smorthit <anne.smorthit@sfwte.ch>
+Edwin Steiner <edwin.steiner@gmx.net>
Oystein Svendsen <svendsen@pvv.org>
Caleb Tennis <caleb@aei-tech.com>
Salvador Eduardo Tropea <salvador@inti.gov.ar>
{
unsigned int chan, range, aref;
unsigned int i;
- unsigned config_bits = 0;
unsigned offset;
unsigned int dither;
unsigned range_code;
offset = 0;
for(i = 0; i < n_chan; i++)
{
+ unsigned config_bits = 0;
chan = CR_CHAN(list[i]);
aref = CR_AREF(list[i]);
range = CR_RANGE(list[i]);
range_code = ni_gainlkup[boardtype.gainlkup][range];
devpriv->ai_offset[i] = offset;
-
switch( aref )
{
case AREF_DIFF: