LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you add a graph to a TDMS file

Hello All,

 

is it possible to add a graph or an image of my front panel graph to a TDMS log and if so, how would i do that?

 

Thank you,



-Matt
0 Kudos
Message 1 of 7
(4,968 Views)

TDMS isn't exactly the same as an Excel file, so images and graphs aren't an option. It's meant as a rapid data saving and organizing filetype. If you want to add graphs and stuff to your data, you could use the Report Generation Toolkit to set up an excel file and add graphs to that.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 7
(4,964 Views)

In theory, you could get the image of your graph/front panel into an array of bytes and save that byte array in the TDMS file.  Of course, you would have to create your own viewer to read that image data properly and display it or whatever.

 

Personally, I would just save the image as a png and stick it in the same folder as the TDMS file.  You could then zip the files so that you just have one file to pass around.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(4,956 Views)

As others have said TDMS is not the right file format for images.  It can be done but other options are probably better.  But that doesn't mean you can't start with TDMS and end with something like XLSX with images.  Here is a link for a tool I made that converts TDMS to XLSX, from there you can use ActiveX to import images and save them.  Or make real graphs like in Excel.  Or use the Report Generation Toolkit to edit the XLSX file after the conversion.

 

https://forums.ni.com/t5/Example-Code/TDMS-to-XLSX-Conversion/ta-p/3511652

0 Kudos
Message 4 of 7
(4,924 Views)

Thank you all for the replies.

 

After reading them, i think i may just make this an xls file and just graph the data.  I dont need high speed file loggin becuase this application is simply for thermocouple data.  Im just not a big fan of the report generation toolkit, i have had issues with it.



-Matt
0 Kudos
Message 5 of 7
(4,917 Views)

You can also look in to some third-party add-ons for excel functionality. XLR8 is one that I've heard of and I think there are other competitors. XLR8 understands the excel file format, so it doesn't need excel installed on the computer to edit the files.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 6 of 7
(4,904 Views)

@matt198717 wrote:

Im just not a big fan of the report generation toolkit, i have had issues with it.


It's not perfect, but I still find it useful enough to recommend.  Of course you can do it all in ActiveX and make your own toolkit.  One such toolkit is found here.

 

https://forums.ni.com/t5/Example-Code/Excel-Toolkit-GOOP/ta-p/3996464

0 Kudos
Message 7 of 7
(4,885 Views)