FlexCase

Data Logging

  • Different methods of logging data

This tutorial assumes that you have purchased a FlexCase with the Pro version, which includes the onboard Raspberry Pi computer, and that you are using Windows to connect. Please contact us for instructions for Mac or Linux.

Methods

There are many ways to log data from the FlexCase depending on your application, with a few common methods listed below.

Python

The FlexCase uses a simple script to collect the data being transmitted by the MCU over the internal SPI communication, and saves the data at a given time step as a .csv file. This basic logger can be expanded to also log states on the MPU, or post-process the data before saving to the log file. Please see the Python guide for more details.

FreeMASTER

This method uses FreeMASTER to directly access the MCU memory for reading and writing. The program also allows any of the captured data to be saved to a text file for later analysis. Please see our guide for getting set up with FreeMASTER.

CAN

If you are able to read data from the CAN bus using additional hardware, the FlexCase’s CAN module can be used to transmit data for logging. This method does not require using the MPU for logging, but does require additional software on your host machine to capture the data being sent by the FlexCase. See our CAN guide for more information.

Simulink

This method is similar to the Python method, since it uses the data that comes from the SPI bus. It requires running a seperate Simulink model on the MPU to collect the SPI data and log variables using Simulink’s built-in logging tools. As with the Python method, the Simulink model being run on the MPU can be expanded for additional computation. Please see our guide on running Simulink models on the MPU.

S3/Google Drive/Onedrive/Etc. Autoupload

Interested in having your log files auto upload to the cloud service provider of your choosing for easy analysis? We recommend using RClone to auto upload any created files.