05-17-2022 06:41 AM
Hi,
I am new to this space. We have raw video files that are stored from cameras directly through the Data logger as .tdms files. I don't understand how this logging functionality works exactly. But i would like to unpack these .tdms files to extract the camera raw data. I am not able get any proper help around this, on how to convert. tdms to. raw format or how to unpack these tdms to the usable form that we are looking for. Can someone please help around this. Using MATLAB or LabVIEW or however it works.
I am sorry for not attaching the files here, these are huge gigabyte files.
Regards,
Dinesh
05-17-2022 07:12 PM
Tdms is a generic logging solution to store all kind of data into. How your data is logged in there depends on the program that did it and this is certainly a custom made solution so you will have to find the source code of that application and post something here.
There is also a TDMS Viewer application. It could help to get a first view of the logging data structure and the individual channels and their data types.
05-19-2022 08:58 AM
Sorry, because of the complexity of the environment I am working in, i don't think i can give the source code for you. Is there a possibility that we can work this out without the source code?
05-19-2022 09:12 AM
Unfortunately, you've not provided enough information about the application that creates these TDMS files to point you in the right direction.
In general, you refer to the application developer or manual to understand the way data is packed inside the TDMS to extract it back into meaning data.
05-19-2022 09:38 AM - edited 05-19-2022 09:39 AM
Well, TDMS is a generic logging format. What is logged in there, how and in which format is application specific. That means the application writing that file defines that. In order to retrieve that data you need to know how it was stored.
It's similar to a database file. You told us that it is a database file and the make of the database engine, you even told us that it contains camera image streams in some raw format, but all we can tell you is that you need to know the hierarchy of the data in the TDMS file and the nature and format of the data to be able to extract them.
The first step would be to try to look at one of the data files in the TDMS Viewer that LabVIEW has. https://www.ni.com/docs/en-US/bundle/labview/page/glang/tdms_file_viewer.html
And from there to learn and understand the TDMS LabVIEW functions so that you can create an application to retrieve the data with the correct channel names. Most likely the data is stored as a binary byte stream but even dat is highly dependent on the mood of the day of the data logger developer.