1

I would like to write a filter for Import to handle data files that are generated by LabView in the LVM format. This should be straightforward, since the format is supposed to consist of comma delimited ASCII text. However, if I read the file in normally, I get junk with a few legible snippets mixed in.

The file can be opened directly in MS Excel, so my guess is that the ASCII data is compressed and being unzipped transparently when it is opened in that program.

BinaryReadList["data.lvm", "Character8"]

(* Large output: {P,K,\.03,\.04 ... *)

I've posted the output of BinaryReadList here. The original data file can be downloaded here.

Are there any facilities available in Mathematica to deal with this kind of data?

dionys
  • 4,321
  • 1
  • 19
  • 46

1 Answers1

3

This is a standard Excel XLSX file. It is not a compressed ASCII file. I don't know why LabView uses the lvm extension, it seems weird. But then I don't know anything about LabView.

Just use

Import["data.lvm", "XLSX"]

Note: Office Open XML files are actually just ZIP files with a standardized directory structure with XML files inside. This is why you can unzip it.

Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263