Hi punkmonkey,
I'm curious why you compare the results of the "DataLoadHdFile" command with that of the "DataFileImport" command. The former is a time-honored DAT-file-specific command for only reading the header file contents-- NOT the data, and the latter is a brand new DIAdem 9.0 function for loading all sorts of data files-- TDM files included.
If you want to load a DAT file using an OLE command, why don't you try the time-honored "DataLoad" command, which is specifically designed for loading DAT files? The "DataLoadHdFile" command is really only used to do selective loading (specific channels or rows) of part of a DAT file. Do you want to load selectively, or do you want to load all the channels from the DAT file?
When you get the same error with
the "DataLoadHdFile" command, are you executing that command also through OLE automation, or directly in DIAdem? What happens if you try both the "DataLoadHdFile" and the "DataFileImport" commands directly from DIAdem (no OLE)?
Brad Turpin
DIAdem Product Support Engineer
National Instruments