02-28-2007 10:30 AM
03-01-2007 08:56 AM
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
03-02-2007 01:47 AM
Hi Brad,
thanks for your response.
unfortunately, I don't have Diadem 10.1, but 10.0 installed. Therefore I can't use the DataFileHeaderAccess function. The way to work around it I found is:
'get number of channels in file
Call DATAFILELOAD(filename,"","Register")
chns = GroupChnCount(GroupIndexGet("LabVIEW_Data"))
Call DATADELALL
Not loading but registering the data works a lot faster!
David