- From: <jose.3_at_wright.edu>
- Date: Tue, 07 Oct 2003 18:49:23 -0400
Hi all,
(1)Again, I need help with calibrating the 6713.
I looked up the postings about the 6713 on the list. Got some code, not sure
how to proceed though.
I basically want the 6713 to get calibrated. If the 6713 can't get
auto-calibrated since it has no analog input lines, is it possible to somehow
bypass or hardcode the input specs into the calDacs, so that the
comedi_calibrate can apply calibration for the subdevice 1(analog output
channels) atleast.
the mail :5July 2002 "NI PCI-6713 signed vs unsigned bug" does have code,
which could aid my current problem, not sure though!
Index: ni_mio_common.c
===================================================================
RCS file: /var/cvs/comedi/comedi/drivers/ni_mio_common.c,v
retrieving revision 1.137
diff -u -r1.137 ni_mio_common.c
--- ni_mio_common.c 7 Jun 2002 00:02:40 -0000 1.137
+++ ni_mio_common.c 5 Jul 2002 18:19:35 -0000
_at__at_ -1855,11 +1855,14 _at__at_
comedi_insn *insn,lsampl_t *data)
{
unsigned int chan = CR_CHAN(insn->chanspec);
+ lsampl_t d;
ni_ao_config_chanlist(dev,s,&insn->chanspec,1);
- devpriv->ao[chan] = data[insn->n-1];
- ao_win_out(data[insn->n-1],DACx_Direct_Data_671x(chan));
+ d = data[insn->n-1];
+ devpriv->ao[chan] = d;
+ d -= 1 << (boardtype.aobits - 1);
+ ao_win_out(d,DACx_Direct_Data_671x(chan));
return insn->n;
}
will this aid in fixing the calibration problem.
Basically is it possible to calibrate the 6713, without using the
auto-calibrate?
(2)
I am still getting the init_setup() failed, I am not able to make sure if this
is an error due to calibrating the 6713 or is related to accessing the correct
device files.
I had got the init_setup() failed, even for the 6024e, but on the next run,
got the 6024E calibrations working correctly.
comedilib-0.7.21]# /usr/bin/comedi_calibrate --file /dev/comedi0
--driver-name ni_pcimio --device-name PCI-6713
init_setup() failed for PCI-6713
Thanks for reading the long description, any guidance with calibrating the
PCI-6713 will be of immense help.
--Smita.
>===== Original Message From Frank Mori Hess <fmhess_at_users.sourceforge.net>
=====
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Saturday 04 October 2003 10:37 am, jose.3_at_wright.edu wrote:
>> Hi All,
>>
>> I am having problems calibrating the 6713, and get the following error
>> message
>>
>> comedilib-0.7.21]# /usr/bin/comedi_calibrate --file /dev/comedi0
>> --driver-name ni_pcimio --device-name PCI-6713
>> init_setup() failed for PCI-6713
>
>There isn't any support for calibrating the pci-6713. I believe there is
>documentation available though, there have been posts about it before on
>this list. It's a bit different from the other ni_pcimio boards in that
>it doesn't have an analog input so it can't do the same type of
>self-calibration the other boards do.
>
>- --
>Frank
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE/f1Vv5vihyNWuA4URAl4YAKDFAvn5BcX/uMfIjk6m5/+LwZaOFACghH/N
>w65mLga5dv5TuLWqRUro3VI=
>=NkQB
>-----END PGP SIGNATURE-----
>
>
>_______________________________________________
>comedi mailing list
>comedi_at_comedi.org
>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2003-10-07Z21:49:23