2024-06-08 10:49 AM - last edited on 2024-06-28 01:17 AM by SimonePradolini
Hi everyone,
I have a STWIN.BOX (STEVAL-STWINBX1) and I have played around with the code examples in Python provided on the tfp-sns-datalog2 repository. The idea is to use this device to provide readings to a Raspberry Pi board and make some decisions based on the data.
I am not an expert in Python, but I coded a simple script to read the sensors using the repository, getting the hsdatalog_cli.py as an example, and using this data as input to the Raspberry Pi board.
The thing is, I can read the sensors only if I start logging (using the start_log method provided by the script hsdatalog_cli.py), and since the log has started, it will generate .dat files. So, every time I run the algorithm inside the Raspberry Pi, new .dat files are generated, and the file sizes depend on how long the board is running the algorithm.
I have tried to get data from the sensors without starting logging, but I have failed.
Is there any way of getting data from the sensors without generating the dat files?
Thanks in advance!
Solved! Go to Solution.
2024-06-12 12:44 AM
Hello @janco_tianno
DATALOG2 example is intended to log data and create datasets. As on today, it works only by saving .dat files on a host (Raspberry or PC) or on an SD card so there is no way to visualize data without starting logging.
Best regards
Simone
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
2024-06-12 12:44 AM
Hello @janco_tianno
DATALOG2 example is intended to log data and create datasets. As on today, it works only by saving .dat files on a host (Raspberry or PC) or on an SD card so there is no way to visualize data without starting logging.
Best regards
Simone
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
2024-07-17 02:22 AM
Hello @janco_tianno
We added the feature you requested in the upcoming FP-SNS-DATALOG2 v2.2.0. It should be online in 2/3 weeks.
hsdatalog_GUI will have a new flag to disable data saving on the PC/Raspberry. So, there will be the possibility not to save data and have it only live plotted.
Best regards
Simone
2024-07-17 01:15 PM
That would be awesome!
We could use the data from the sensors to train an AI model and still use the same structure to get real-time data without saving them.
Thanks for the support!
Best regards,
Kleber Silva.