LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert Labview log file to text file?

I want to open the log file in Excel or other text editor. Is there any special format of Labview log file? I thought it just binary, so I used a general program to convert binary file to Ascii file. But it failed because of the format of the log file format. Is there any other way that I can read log file in Excel? Thanks a lot.
0 Kudos
Message 1 of 4
(4,099 Views)
Pucca,

What log file are you refering to? If you created a binary file in LabVIEW, then your best bet is to read it back in as binary and convert it to ascii, and then to save it as a txt file. Or just save it as text in the first place.

However you should convert it really just depends on what your log file looks like, and how you saved data to it. The "format" of a LabVIEW data file is fully dependant on how you sent the data to it. There is not a LabVIEW binary format, unless you are refering to Endian.

If you can tell us more about the file we may be able to help you convert it.
0 Kudos
Message 2 of 4
(4,076 Views)
Are you refering to the front panel logging option? The actual binary format is going to depend on what controls and indicators you have on the front panel and their data types. There is an example of using the file i/o functions to read one of these files in chapter 14 of the user manual. The problem you'll have if you write a program to read a log file is that every time you add or delete a control/indicator, you'll have to rewrite your program and then you'll be unable to read older log files. You'd be better off writing your own log routines. Then you would control the binary format. There are shipping examples that you can look at for fbinary file storage.
Message 3 of 4
(4,075 Views)


@Dennis Knutson wrote:
Are you refering to the front panel logging option? The actual binary format is going to depend on what controls and indicators you have on the front panel and their data types. There is an example of using the file i/o functions to read one of these files in chapter 14 of the user manual. The problem you'll have if you write a program to read a log file is that every time you add or delete a control/indicator, you'll have to rewrite your program and then you'll be unable to read older log files. You'd be better off writing your own log routines. Then you would control the binary format. There are shipping examples that you can look at for fbinary file storage.




Yes, I am referring the front panel logging option and I will read the maual first. Thank you very much for your help.
0 Kudos
Message 4 of 4
(4,064 Views)