MATLAB: Is it possible to compress data files created on the BeagleBoard using Simulink 8.0 (R2012b)

simulink

I am targeting a BeagleBoard using the Run-on-Target-Hardware functionality in Simulink 8.0 (R2012b). My application generates data files, and I would like to reduce the size of these files. Is there a way within Simulink to create compressed files?

Best Answer

The ability to compress files is not explicitly provided in the BeagleBoard support package for Simulink; however, because BeagleBoard hardware runs an Ubuntu Linux distribution as the operating system, it may be possible to perform compression by directly executing Linux commands.
For example, the following link provides a tutorial describing how to remotely execute Linux commands on the BeagleBoard hardware directly from the MATLAB command line:
Using the information provided in this tutorial, it may be possible to compress files on the BeagleBoard by executing a Linux command such as TAR.