analogdevicesinc / Pixelpulse2

Pixelpulse2 is a user interface for analog systems exploration.
Mozilla Public License 2.0
46 stars 28 forks source link

Data logger #231

Closed cristi-iacob closed 4 years ago

cristi-iacob commented 5 years ago

Added data logging functionality.

One can now log the samples generated by Pixelpulse.

How does it work? 

You can log the generated samples on a sample time of 1 or 10 seconds. The sample time is chosen from Pixelpulse's menu. If one of this sample times is checked, the data logging label becomes checkable. If you want to log the next session, you must check data logging from the menu. Every 1 or 10 seconds (depending on the sample time), the samples are logged.

How are the samples logged?

For each interval of time, the logger computes the minimum, maximum and average for the voltage and current from each device, on every channel. It also logs the device to which each data corresponds and the moment of time when the log was done (relative to the starting time). The file also includes on it's first line, the description for each column. The file name is PPLog{datetime}.csv, where {datetime} is the date and the time when the file was generated (when the logged session started).

Where are these files located?

In Pixelpulse's folder, it will be generated a folder having the name ,,logging". It will contain all generated logging files.

For the moment, there is a small delay when having two or more devices connected and logging the data. This will be fixed soon.