Sensors, Electronics and Prototyping

Reply To: Matlab Communication

Welcome to Redshift Labs Forums UM7 Product Support Matlab Communication Reply To: Matlab Communication


The Matlab script that can be downloaded from the site is a snippet designed to illustrate how to use serial port callbacks to read and parse data for the UM7, from within Matlab. You can delete the references to got_temperature_data and got_gyro_data.

Basically, the serial callback function reads bytes in from the serial port and parses them. When a packet is received, you can check the packet type and address bytes to see if it is the data that you are interested in. If it is, you can log it, or set a flag (like got_temperature_data), or whatever you want to do with it.