diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-30 11:15:45 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-10-30 11:15:45 +0100 |
commit | df04f15d9132ec6b2781edfccc5ad8d33dd3cdd9 (patch) | |
tree | 2fa0093fc60bac124cf83ba4d01acf6e2b5706b1 /lib/lennart | |
parent | c2858f6c1070d7baa87d2f433746adec5042531e (diff) |
Add DFATOOL_EXPORT_LASYNC variable for ET+LA / ET+Timer sync eval
Diffstat (limited to 'lib/lennart')
-rw-r--r-- | lib/lennart/DataProcessor.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/lennart/DataProcessor.py b/lib/lennart/DataProcessor.py index 07d2a2b..b46315a 100644 --- a/lib/lennart/DataProcessor.py +++ b/lib/lennart/DataProcessor.py @@ -171,6 +171,23 @@ class DataProcessor: ) * endFactor + start_timestamp return modified_timestamps_with_drift + def export_sync(self): + # [1st trans start, 1st trans stop, 2nd trans start, 2nd trans stop, ...] + sync_timestamps = list() + + for i in range(4, len(self.modified_timestamps) - 8, 2): + sync_timestamps.append( + (self.modified_timestamps[i], self.modified_timestamps[i + 1]) + ) + + # EnergyTrace timestamps + timestamps = self.plot_data_x + + # EnergyTrace power values + power = self.plot_data_y + + return {"sync": sync_timestamps, "timestamps": timestamps, "power": power} + def plot(self, annotateData=None): """ Plots the power usage and the timestamps by logic analyzer |