Solution
FlexLogger can log data directly into TDMS and CSV files, to convert those files to other common file format you can use the
FlexLogger TDMS Viewever which has built in plug-ins that allow for the conversion of data to different file formats including .mdf4 files