Hi David,
If you have DIAdem 10.1, then you can use the new DataFileHeader object to interrogate a data file without having to load it:
DataFilePath = ProgramDrv & "Demo\Dat\Example.LVM"
Set DataFileHeader = DataFileHeaderAccess(DataFilePath, "LVM", TRUE)
MsgBox DataFileHeader.GroupChnCount(1)
Alternatively, if you have DIAdem 10.0 and the LVM file happens to be in a search area, you could programmatically query the file and return the Group level and count the number of return rows in the Search Results Table.
Ask if you need more information,
Brad Turpin
DIAdem Product Support Engineer
National Instruments