Hello Uwe,

would like to submit my second patch for the DSLogic driver here.

The sampling rate is 10 kHz today.

The patch changes this setting to 500 kHz.

I had already written about it on the IRC:
I estimate a default value of 500 kHz would certainly work for many
standard measurements with all probes.

Statement:
/ * new default value 500khz (1MSample / 10khz time too long for the
last sample) * /

I hope he finds your approval.

Best regards
Jörg
>From acc6bf1cbfdeb7fc236448a944a03eb27ab59c3b Mon Sep 17 00:00:00 2001
From: Joerg Alpers <jalp...@gmx.net>
Date: Thu, 10 May 2018 22:31:35 +0200
Subject: [PATCH] DSLogic samplerate default 500khz

---
 src/hardware/dreamsourcelab-dslogic/api.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/hardware/dreamsourcelab-dslogic/api.c b/src/hardware/dreamsourcelab-dslogic/api.c
index 66c4dc7..21343f1 100644
--- a/src/hardware/dreamsourcelab-dslogic/api.c
+++ b/src/hardware/dreamsourcelab-dslogic/api.c
@@ -356,8 +356,8 @@ static int dev_open(struct sr_dev_inst *sdi)
 		return ret;
 
 	if (devc->cur_samplerate == 0) {
-		/* Samplerate hasn't been set; default to the slowest one. */
-		devc->cur_samplerate = devc->samplerates[0];
+		/* new default 500khz (1MSample/10khz Time too long for the last sample) */ 
+		devc->cur_samplerate = devc->samplerates[5];
 	}
 
 	if (devc->cur_threshold == 0.0) {
-- 
2.1.4

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to