09-26-2011 12:56 PM - edited 09-26-2011 12:57 PM
I would like to convert the 2GB of measurement data which is saved in a non-TDMS standard binary file into a TDMS standard binary file.
The sequence in which data is present in the binary file is:
Timestamp | 2048 samples of measured data | Timestamp | 2048 samples of measured data...
I am currently using the binary file read/write vi's to view this data but would like to utilize the enhanced functionality and ease of using the TDMS API's.
I am not sure how to create the channels for the timestamps and the measrement data.
Please help!
09-26-2011 02:02 PM
Hi tbinswirls
Thank you for joining the forums!
It sounds like you are on the right track - if you can use the Read from Binary File to extract the data from the file, you will then be able to use the string functions (e.g. Match Pattern or Match Regular Expression) to split the overall file into the seperate strings which make up your time stamps and data sets.
From that point it should be plain sailing. There are some great programs in the Example Finder ("Help > Find Examples...") which show how to use the TDMS VIs effectively - TDMS Write.vi should be a good place to start.
Additionally the Help Files for the TDMS functions are great - there are full explanations of what each of the inputs to functions do and links to the relevant examples.
Please let me know how you get on with your application!