LIS3MDL Magnetometer Sensor
R2026bMeasure magnetic field strength and temperature from LIS3MDL Magnetometer sensor
Since R2022b
Libraries:
Raspberry Pi Blockset /
Sensors /
IMU Sensors
Description
The LIS3MDL Magnetometer Sensor block outputs the values of magnetic field strength along x-, y- and z- axes as measured by the LIS3MDL Magnetometer sensor connected to Raspberry Pi® board. The block also outputs the temperature as read by the LIS3MDL Magnetometer sensor.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypiIMUsensorslib/LIS3MDL Magnetometer"
Example: add_block("raspberrypiIMUsensorslib/LIS3MDL Magnetometer","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022b
