Your mentioning of the block diagram makes me think you are using LabVIEW for your application. If this is true, you should post this question to the proper forum.
Anyway, whichever is the programming environment, knowing which functions you are using to write the output files can help us in suggesting the best solution.