From b607063da0da7ef740cadd9e6ae9a495f9447577 Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Fri, 19 Aug 2016 14:24:12 +0200 Subject: [PATCH] fix: last coordinate cannot be at x=0x4000 or the device crashes --- keysight_agilent_81150A/keysight_convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keysight_agilent_81150A/keysight_convert.py b/keysight_agilent_81150A/keysight_convert.py index c93e592..a7738e5 100755 --- a/keysight_agilent_81150A/keysight_convert.py +++ b/keysight_agilent_81150A/keysight_convert.py @@ -95,7 +95,7 @@ def main(): #append data points for i in range(0,no_points): - b=b+flip(min(0x4000,int(0x4000*x[i]))) + b=b+flip(min(0x3FFF,int(0x4000*x[i]))) b=b+flip(0) b=b+flip(int(0x1FFF*y[i])) b=b+flip(0) -- 2.43.0