Re: Gain adjustment. comedi_config parameter or Options for PCL-812: * [0] - IO Base * [1] - IRQ (0=disable, 2, 3, 4, 5, 6, 7; 10, 11, 12, 14, 15) * [2] - DMA (0=disable, 1, 3) * [3] - 0=trigger source is internal 8253 with 2MHz clock * 1=trigger source is external * [4] - 0=A/D input range is +/-10V * 1=A/D input range is +/-5V * 2=A/D input range is +/-2.5V * 3=A/D input range is +/-1.25V * 4=A/D input range is +/-0.625V * 5=A/D input range is +/-0.3125V * [5] - 0=D/A outputs 0-5V (internal reference -5V) * 1=D/A outputs 0-10V (internal reference -10V) * 2=D/A outputs unknow (external reference) * * Options for PCL-812PG, ACL-8112PG: * [0] - IO Base * [1] - IRQ (0=disable, 2, 3, 4, 5, 6, 7; 10, 11, 12, 14, 15) * [2] - DMA (0=disable, 1, 3) * [3] - 0=trigger source is internal 8253 with 2MHz cloc

Felipe Zottola Diz napsal(a):
> I am working with PCL-812PG DAQ card and its Comedi driver.
> 
> I am having trouble adjusting gain, please correct me if I'm doing
> something wrong.
> 
> To load pcl812.o driver I issue the following commands:
> 
> /sbin/modprobe -v pcl812
> 
> /usr/local/sbin/comedi_config -v /dev/comedi0 pcl812 0x230,0,0,0,1,0
> 
> The fourth parameter specifies the gain that should be used in field data
> conversion.

Do you have PCL-812 or PCL-812PG card?
If second, then this comedi_config command will be better:
/usr/local/sbin/comedi_config -v /dev/comedi0 pcl812pg 0x230,0,0,0,0,0

 >  * Options for PCL-812PG, ACL-8112PG:
 >  *  [0] - IO Base
 >  *  [1] - IRQ  (0=disable, 2, 3, 4, 5, 6, 7; 10, 11, 12, 14, 15)
 >  *  [2] - DMA  (0=disable, 1, 3)
 >  *  [3] - 0=trigger source is internal 8253 with 2MHz clock
 >  *        1=trigger source is external

And too check a JP9 jumper (A/D Maximum Input Voltage Selection) and
right select this parametr:

>  *  [4] - 0=A/D have max +/-5V input
>  *        1=A/D have max +/-10V input

Michal

Received on 2004-08-20Z07:54:52