LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

extract header from lvm file

I have a vi for DAQ with n channels. I am writing all the signals to an lvm file with all the standard headers. I would like to extract the date and time saved in the headers separately as I have another loop for reading the above lvm files which may be executed at a later stage. Help would be greatly appreciated
0 Kudos
Message 1 of 2
(2,538 Views)

### WARNING ###

The following method is not supported since it uses unpublished interfaces which may change with future versions and between versions of LabVIEW.

 

You can use one of the internal subVIs used by the LVM Express VI to read the header.  It will return a timestamp which you can format to get the information you want.  The subVI is

 

<vi.lib>\express\express input\ExFileReadBlock.llb\ex_GetHeader.vi

 

Set first time to TRUE and file dialog to FALSE.  Set the file path to your valid path.  You can find this and other subVIs used by the LVM Express VI by opening the front panel and looking at the code.  It is large, but fairly modular.

 

Alternately, you can create your own VI to do this by parsing the top section of the LVM file.  You can find the spec for LVM files here.

0 Kudos
Message 2 of 2
(2,533 Views)