From b6dbc7a8a7965013a95be2bfadd70303446ffc65 Mon Sep 17 00:00:00 2001 From: Daniel Krebs Date: Fri, 15 Jun 2018 17:42:40 +0200 Subject: [PATCH] comedi: config tuning to reduce latency for demo --- etc/comedi.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/etc/comedi.conf b/etc/comedi.conf index 30524df01..a224f75aa 100644 --- a/etc/comedi.conf +++ b/etc/comedi.conf @@ -43,13 +43,15 @@ nodes = { subdevice = 1, # Note: buffer size and rate shouldn't be changed at the moment # output sample rate - rate = 10000, + rate = 40000, # comedi write buffer in kilobytes - bufsize = 32, + bufsize = 24, signals = ( # note: order in this array corresponds to order in villas sample { name = "ao0", channel = 0, range = 0, aref = 0 }, - { name = "ao1", channel = 1, range = 0, aref = 0 } + { name = "ao1", channel = 1, range = 0, aref = 0 }, + { name = "ao2", channel = 2, range = 0, aref = 0 }, + { name = "ao3", channel = 3, range = 0, aref = 0 } ) } }, @@ -80,5 +82,9 @@ nodes = { } paths = ( - { in = ("sine1.data[0]", "sine2.data[0]"), out = "pcie6259", rate = 10000, mask = () } + # 2-ch sine + #{ in = ("sine1.data[0]", "sine2.data[0]"), out = "pcie6259", rate = 10000, mask = () } + + # Remote data via UDP + { in = "remote.data[0-3]", out = "pcie6259", rate = 40000, mask = () } )