Re: PCIDAS 4020/12 ext trigger/clock

Hi Frank,
I've been reading the documentation on this and I understand the
TRIG_OTHER but am having a hard time figuring out how I code for the
external clock.  I don't know what you meant by "using an INSN_CONFIG_TIMER_1 configuration insn
to configure the divisor to use for the external clock."  Could you give me the rest of the insn code I need to
define an external clock of 10Mhz?

I'm adding a 4th instruction (before the INSN_READ) to the example
insn.c code wihch so far looks like this:
insn[1].insn=INSN_CONFIG;
insn[1].n=n_scan;
insn[1].data=data;
insn[1].subdev=subdevice;
insn[1].chanspec=INSN_CONFIG_TIMER_1 ???

thanks - nick

Frank Mori Hess wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Friday 19 November 2004 12:24 pm, Nick Iorio wrote:
>  
>
>>I have a PCIDAS 4020/12 which has an external trigger connected to the
>>BNC and an external clock connected to pin 10 of the 40 pin connector.
>>How do I reference these in comedi?
>>thank you - nick
>>    
>>
>
>It looks like the comedilib docs haven't been synced with the drivers 
>recently.  This quote may help:
>
>To select the bnc trigger input on the 4020 (instead of the dio input),
>specify a nonzero channel in the chanspec.  If you wish to use an external
>master clock on the 4020, you may do so by setting the scan_begin_src
>to TRIG_OTHER, and using an INSN_CONFIG_TIMER_1 configuration insn
>to configure the divisor to use for the external clock.
>
>- -- 
>Frank
>
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.2.4 (GNU/Linux)
>
>iD8DBQFBn3QU5vihyNWuA4URAqcaAJ0Ufj/1B3P62MUfaiTyXC1IXf203gCgtKCz
>O/dT+rXIBqcDx/lRYy0Ie+c=
>=ONea
>-----END PGP SIGNATURE-----
>
>_______________________________________________
>comedi mailing list
>comedi_at_comedi.org
>https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>  
>

Received on 2004-12-13Z17:08:47