Re: Analog Input Gain/Filtering

On Wednesday 31 January 2007 12:09 pm, Apodaca, Bob wrote:
> We are creating a driver for a card that has adjustable gain and
> filtering (on/off filters) for each channel.  I thought I saw some
> references about channel gain in ni_mio_commo code, but it was not clear
> how a COMEDI application would set the gains.  My question is: is there
> a way to take advantage of the gain/filtering in comedi and where can I
> find an example for both an application and a driver.

gain is set by selecting a range in the chanspec, with the CR_PACK or 
CR_PACK_FLAGS macros.  The driver extracts the range with the CR_RANGE 
macro.  The input filter can also be enabled/disabled with the 
CR_ALT_FILTER flag in the chanspec.  There is also an INSN_CONFIG_FILTER 
configuration instruction that can be used to select between multiple 
filters.

-- 
Frank

Received on 2007-02-01Z01:28:53