Before logging signals:
Connect the target hardware to a computer.
Create or open a Simulink® model. To log signals, the model must have at least one of these blocks.
With UAV Toolbox Support Package for PX4® Autopilots, it is recommended that you use the To Workspace block for logging signals even though the other two blocks are also supported.
Save the changes to the Simulink model.
Ensure that the file name of the Simulink model does not exceed 22
characters. The filename of the generated MAT file on the SD card
consists of this Simulink model's file name and it is also suffixed
with the iteration number and run number. The Nuttx (NSH) RTOS,
based on which the Pixhawk Firmware is run, has a default file name
limit of 32 characters. Therefore, if the filename of the generated
exceeds 32 characters, the MAT-file will not be generated.