cancel
Showing results for 
Search instead for 
Did you mean: 

Stream sensortile box pro data via USB into Matlab

Gawa
Associate

Hello, I have the sensortile box pro. I have used the algobuilder in the MEMS-studio to configure various data outputs (Acc, Gyr, RotationVector 6x). The sensortile isplugged in with USB. I can see those data coming into the MEMS-studio algobuilder evaluation, and I have no problem logging the data. 

I want to know how can I pull the same data into a Matlab. to perform a few real-time analysis. I cannot find documentation on how the communication works. I can connect to sensortile as a serial port object. I'm assuming the baudrate is 115200. However, I don't know what commands I need to send to it for it to return those data. 

Can anyone point me into the right direction? 

Thanks. 

 

2 REPLIES 2
Federica Bossi
ST Employee

Hi @Gawa ,

To pass the data from sensortile to the PC you have to create a flow from "expert view" with the sensors you are interested in as input, and as output you have to set “stream to USB”.
That way the sensortile will install a virtualCom on the PC, just connect matlab to that VirtualCom to pass the data.
The Data is in CSV format.
The data-log via USB will start automatically when you restart the sensortile.

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.
Gawa
Associate

When you say 'expert view', you are referring to the ST sensor app and not the MEMS Studio, is that correct?