Use the printegrator component to integrate the energy output from the collector and print to a file. Look at the SDHW example project for more information.