LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unpack .tdms files to mipi Raw format

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

0 Kudos
Message 1 of 5
(1,235 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 5
(1,183 Views)

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?

0 Kudos
Message 3 of 5
(1,150 Views)

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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 5
(1,145 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 5
(1,141 Views)