[2] - dma (optional)
[3] - master clock speed in MHz (optional, 1 or 10, ignored if board can
probe clock, defaults to 1)
- [4] - analog input range lowest voltage (optional, only useful if your
+ [4] - analog input range lowest voltage in microvolts (optional, only useful if your
board does not have software programmable gain)
- [5] - analog input range highest voltage (optional, only useful if your
+ [5] - analog input range highest voltage in microvolts (optional, only useful if your
board does not have software programmable gain)
- [6] - analog output range lowest voltage (optional)
- [7] - analog output range highest voltage (optional)
+ [6] - analog output range lowest voltage in microvolts (optional)
+ [7] - analog output range highest voltage in microvolts (optional)
Passing a zero for an option is the same as leaving it unspecified.
[2] - dma (optional)
[3] - master clock speed in MHz (optional, 1 or 10, ignored if board
can probe clock speed, defaults to 1 otherwise)
- [4] - analog input range lowest voltage (optional, only useful if your
+ [4] - analog input range lowest in microvolts (optional, only useful if your
board does not have software programmable gain)
- [5] - analog input range highest voltage (optional, only useful if your
+ [5] - analog input range highest in microvolts (optional, only useful if your
board does not have software programmable gain)
- [6] - analog output range lowest voltage (optional)
- [7] - analog output range highest voltage (optional)
+ [6] - analog output range lowest in microvolts (optional)
+ [7] - analog output range highest in microvolts (optional)
Both an irq line and dma channel are required for timed or externally
triggered conversions.
// initialize ai range
devpriv->user_ao_range_table->length = 1;
user_ai_range = devpriv->user_ai_range_table->range;
- user_ai_range->min = it->options[4] * 1e6;
- user_ai_range->max = it->options[5] * 1e6;
+ user_ai_range->min = it->options[4];
+ user_ai_range->max = it->options[5];
user_ai_range->flags = UNIT_volt;
}
// get any user-defined output range
// initialize ao range
devpriv->user_ai_range_table->length = 1;
user_ao_range = devpriv->user_ao_range_table->range;
- user_ao_range->min = it->options[6] * 1e6;
- user_ao_range->max = it->options[7] * 1e6;
+ user_ao_range->min = it->options[6];
+ user_ao_range->max = it->options[7];
user_ao_range->flags = UNIT_volt;
}