From 0e12fdf71d1972593d9d2000bb52d3ad12a4041d Mon Sep 17 00:00:00 2001
From: galperti <cristian.galperti@epfl.ch>
Date: Tue, 21 Jun 2022 17:14:19 +0200
Subject: [PATCH] timebase offset added

- to be addressed in a proper issue
---
 classes/SCDclass_mdswgsigsingle.m | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/classes/SCDclass_mdswgsigsingle.m b/classes/SCDclass_mdswgsigsingle.m
index b7cf04e..1925dc4 100644
--- a/classes/SCDclass_mdswgsigsingle.m
+++ b/classes/SCDclass_mdswgsigsingle.m
@@ -89,10 +89,14 @@ classdef SCDclass_mdswgsigsingle < SCDclass_mdswg
             tstart=obj.timebasestart;
             dt=obj.timebasedt;
             tstop=obj.timebasestop;
-
+            
             timebase=tstart:dt:tstop;
-           
-            value.Time = timebase;
+          
+            timebaseoffset=-dt/100; 
+            %timebaseoffset=0; 
+            
+            value.Time = timebase+timebaseoffset;
+            
             value.Data = single(zeros(numel(timebase),1));
  
             %data=tdi(obj.tdiexpr);   
-- 
GitLab