Module: xenomai-abe
Branch: analogy
Commit: 50748c4e272c9754f975633e94bb01c5abd5a5bc
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=50748c4e272c9754f975633e94bb01c5abd5a5bc

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Wed Dec  9 22:39:02 2009 +0100

analogy: in cmd_read, set a higher scan interval

In case of wide acquisitions (many channels acquired simultaneously),
the argument scan_begin_arg was too low for the whole scan to
complete.

---

 src/utils/analogy/cmd_read.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/utils/analogy/cmd_read.c b/src/utils/analogy/cmd_read.c
index 99bdab8..b692fad 100644
--- a/src/utils/analogy/cmd_read.c
+++ b/src/utils/analogy/cmd_read.c
@@ -38,9 +38,7 @@
 #define ID_SUBD 0
 /* For simplicity sake, a maximum channel 
    count is defined */
-#define MAX_NB_CHAN 10
-/* Four channels used by default */
-#define NB_CHAN 4
+#define MAX_NB_CHAN 32
 /* One hundred triggered scans by default */
 #define NB_SCAN 100
 
@@ -65,7 +63,7 @@ a4l_cmd_t cmd = {
        .start_src = TRIG_NOW,
        .start_arg = 0,
        .scan_begin_src = TRIG_TIMER,
-       .scan_begin_arg = 2000000,      /* in ns */
+       .scan_begin_arg = 8000000,      /* in ns */
        .convert_src = TRIG_TIMER,
        .convert_arg = 500000,  /* in ns */
        .scan_end_src = TRIG_COUNT,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to