cancel
Showing results for 
Search instead for 
Did you mean: 

Export Sensor Data to CSV Format for NanoEdge AI Studio?

Mahdouch
Associate

Dear STMicroelectronics Support Team,

I am currently working with the STWINBX1 kit and the STEVAL-STWBXCS1A, and I have been using the FP SNS DATALOG2 firmware, specifically the hsdatalog_GUI, to capture data from my sensors. While I can successfully capture the data, I am encountering an issue when attempting to export it.

The data is being exported as figure (PNG) files, and I am unable to export it to CSV format, which I need for further analysis in NanoEdge AI Studio. Unfortunately, I have not found any option to export the data in CSV format through the HSD Python SDK, nor does the hsdatalog_GUI provide a clear way to do so.

Could you please provide guidance on how to export the sensor data to CSV format? Is there any functionality or workaround in the software tools or firmware that allows for exporting data directly into a CSV file?

Your assistance in resolving this issue would be greatly appreciated, as I am ready to move forward with my analysis and need the data in a compatible format for NanoEdge AI Studio.

Thank you for your support!

Best regards,

1 ACCEPTED SOLUTION

Accepted Solutions
SimonePradolini
ST Employee

Hello @Mahdouch 

The option you’re searching for isn’t directly supported inside the hsdatalog_GUI, but the HSDPython SDK offers other ready-to-use Python scripts that are valid for your use case.

The SDK offers many examples that you can use for offline analysis, data preprocessing, and conversion.

Have you already had a look into hsdatalog_data_export.py? It’s meant to export DATALOG2-based acquisition folder into the preferred human-readable format (TXT, CSV, TSV, PARQUET).

Furthermore, HSDPython SDK includes also hsdatalog_to_nanoedge.py. It’s specifically designed to convert data into a format compatible with NanoEdge AI Studio tool.

First, I suggest you launch the scripts within your Python environment with the -h option. You'll see the helper with the description of supported features and the full list of optional commands and parameters. Here is an example:

SimonePradolini_0-1739176937332.png

 

Is this solving your issue?

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.

View solution in original post

2 REPLIES 2
SimonePradolini
ST Employee

Hello @Mahdouch 

The option you’re searching for isn’t directly supported inside the hsdatalog_GUI, but the HSDPython SDK offers other ready-to-use Python scripts that are valid for your use case.

The SDK offers many examples that you can use for offline analysis, data preprocessing, and conversion.

Have you already had a look into hsdatalog_data_export.py? It’s meant to export DATALOG2-based acquisition folder into the preferred human-readable format (TXT, CSV, TSV, PARQUET).

Furthermore, HSDPython SDK includes also hsdatalog_to_nanoedge.py. It’s specifically designed to convert data into a format compatible with NanoEdge AI Studio tool.

First, I suggest you launch the scripts within your Python environment with the -h option. You'll see the helper with the description of supported features and the full list of optional commands and parameters. Here is an example:

SimonePradolini_0-1739176937332.png

 

Is this solving your issue?

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.

Hello @SimonePradolini 

Thank you for your help! I tried the solution you suggested, and it worked perfectly. The hsdatalog_data_export.py and hsdatalog_to_nanoedge.py scripts were exactly what I needed. Running them with the -h option also helped me understand the available parameters better.

I really appreciate your support!

Best regards,

Mahdouch