Follow

Introduction to the MT SDK programming examples for MTi devices

Introduction

Xsens provides programming examples to help customers with the software integration of our products. The programming examples can be found in the MT SDK folder of your MT Software Suite installation, or via the links below. 

 

Low Level Communication: MTi 1-series only

Example Location

Description

ST Nucleo

Windows:
     [MT SDK folder]\Examples\embedded_examples

Linux:
     [MTSDK folder]\examples\mtsdk\embedded_examples

The examples are targeted at the STM32F401RE Nucleo board and make use of the SPI or I²C interface.

Includes two examples: example_mti1_i2c_spi_mtssp_protocol_explorer and example_mti1_i2c_spi_receive_measurement_data. For further documentation, refer to the readme.txt file.

In order to modify the examples to make them run on other Nucleo boards, you will need to use STM32CubeMX to port the code in the 'lib' folder for compatibility with your desired Nucleo board.

Arduino A short guide on setting up communication with an Arduino can be found here. -

 

Xsens Device API: MTi 1-, MTi 10-, MTi 600- and MTi 100-series

Example API1 Location

Description

C++ XDA

Windows:
     [MT SDK folder]\Examples\xda_cpp

Linux:
     [MTSDK folder]\examples\mtsdk\xda_cpp

Includes two examples: example_mti_parse_logfile.cpp and example_mti_receive_data.cpp.

Comes as a single Visual Studio solution (.sln). The Linux version includes a Makefile.

For further documentation, refer to the XDA Library2.

C++ Open source XDA

Windows:
     [MT SDK folder]\Examples\xda_public_cpp

Linux:
     [MTSDK folder]\examples\mtsdk\xda_public_cpp

Includes two examples: example_mti_parse_logfile.cpp and example_mti_receive_data.cpp.

Comes as a single Visual Studio solution (.sln). The Linux version includes a Makefile.

For further documentation, refer to the XDA Library2.

C# XDA

Windows:
     [MT SDK folder]\Examples\xda_csharp

Includes two examples: example_mti_parse_logfile.cs and example_mti_receive_data.cs.

Comes as a single Visual Studio solution (.sln).

For further documentation, refer to the XDA Library2.

Matlab XDA

Windows:
     [MT SDK folder]\Examples\xda_matlab

Includes two examples: example_mti_parse_logfile.m and example_mti_receive_data.m.

For further documentation, refer to the XDA Library2.

Python XDA

Windows:
     [MT SDK folder]\Examples\xda_python

Linux:
     [MTSDK folder]\examples\mtsdk\xda_python

Includes two examples: example_mti_parse_logfile.py and example_mti_receive_data.py.

Check the README.txt file before use.

For further documentation, refer to the XDA Library2.

ROS Open source XDA

Linux:
     [MTSDK folder]\xsens_ros_mti_driver

The official Xsens supported ROS driver.

Check the README.txt file before use.

For further documentation, refer to the XDA Library2.

 

1Regular XDA cannot be compiled using ARM processors. Users of ARM platforms (e.g. Raspberry Pi) can use the open source XDA examples instead.

2The XDA library can be found at:

  • Windows:
    [Documentation folder]\MT SDK\Xsens Device API Library.chm
  • Linux:
    [MTSDK folder]/doc/xsensdeviceapi/doc/html/index.html

 

Was this article helpful?
1 out of 1 found this helpful
Do you have a question? Please post your question in our Community Forum