- From: Stefan Larsson <last_at_s2.chalmers.se>
- Date: Thu, 12 Feb 2004 11:28:34 +0100
We've been trying to get the external trigger working with the
national instruments card pci-mio-16e-1 without success. After scanning
the mailing list archive we've found out that there seems to be other
people having similar problems.
So far we've observed the following:
1. Sending TRIG_ANY to both scan_begin_src and convert_src and letting
comedi_command_test() which returns 0x0050 for both which should
mean that TRIG_EXT and TRIG_TIMER should be the available triggers.
2. We've tried plugging in the TTL-trigger signal into PFI0 and PFI1
without success.
3. Always TRIG_NOW on start_src (following examples for PFI0)
Combinations:
TRIG_EXT on scan_begin_src and TRIG_EXT on convert_src
TRIG_EXT on scan_begin_src and TRIG_NOW on convert_src
TRIG_EXT on scan_begin_src and TRIG_TIMER on convert_src
Arguments:
(CR_EDGE | PFI0) on scan_begin_arg when using TRIG_EXT
(CR_EDGE | PFI0) on convert_arg when using TRIG_EXT
otherwise
0 on scan_begin_arg when using TRIG_NOW
0 on convert_arg when using TRIG_NOW
4. cmd.c was used for testing...
5. the read command in vicinity of line 150 (while(1)-loop)
waits forever when executed
( ret = read(comedi_fileno(dev),buf,BUFSZ); )
Does anyone know how to make this work?
* A working example of cmd.c would be interesting to see.
* Any experiences on external trigging would be appreciated.
* In one of the messages in the mailing list archive a
howto text was mentioned. I have not been able to find
it. Does it actually exist?
Thanks in advance,
Stefan Larsson and Lars Bergström
Department of Signals and Systems
Chalmers University of Technology
Göteborg, Sweden
Received on 2004-02-12Z10:28:34