04-11-2012 06:51 PM
Hi
I developed a GUI in matlab. I converted the excel files into .mat files and used in matlab so it takes less time to perform the tasks. But now I want to implement the same task in labview. In what format do I need to save the converted excel file since reading the excel file takes a lot of time everytime I perform.
04-11-2012 07:26 PM
04-11-2012 07:31 PM
I have a lot of excel sheets nearly 5GB. so i cant change every file to .txt
04-11-2012 08:02 PM
Well, the you need to be more clear.
I thought you changed every single file to something suitable for matlab, so why would my suggestion be any different?
04-11-2012 08:14 PM
First of all I want to know if there is any specific format like the .mat in Matlab. Moreoever the excelfiles i am having have multiple sheets so they need to be saved seperately into text file inorder to access them as you said. When I am accessing with .mat format over Matlab I am able to perform the given task in 5 secs. Now I want a module as faster as that one.
04-12-2012 01:38 AM - edited 04-12-2012 01:40 AM
04-23-2012 08:54 AM
If you are looking for an efficient way to store data in LabVIEW, you can use the TDMS file format. This is a file format National Instrument created to address some of the very issues you are talking about (speed, file size, etc.) You can also read TDMS files from 3rd party applications (Excel, etc.) with the free tools NI makes available online. If you want to learn more about the TDMS file format you can read the whitepaper here.
As for the files that you already have, you can use DataPlugins in LabVIEW to read in any custom file format, regardless of how large it is or how many sheets it has.DataPlugins map any arbitrary custom file format onto the TDMS model. You can create these DataPlugins using a DIAdem wizard or program it using VBScript, C++, or LabVIEW. National Instruments offers many DataPlugins for free download from ni.com/dataplugins. You can then follow this tutorial to learn how to use the DataPlugins in LabVIEW.