08-02-2005 01:03 PM
08-02-2005 01:48 PM
08-02-2005 03:13 PM
Thanks for the quick response.
The type of datalog file I am talking about is the kind when you drop an "Open File.vi" on the block diagram and you wire something to the "datalog type" input. LabVIEW automatically creates "records" in the file, making it easier to read the file back out. I am interested in what the format of each "record" is? I assume there must be some type of header information that would include a type descriptor, record number, etc. I have used these types of files before, but I always created them in LabVIEW, now I am trying to create the file in C.
Thanks again for the help
08-02-2005 03:33 PM
08-02-2005 03:39 PM
Maybe "format" is the wrong word; I'm looking for the structure of the file. If I open the file in a hex editor, what is the structure? There seems to be a code (44 54 4C 47(hex) = DTLG(ascii)) that I vaguely remember indicating that it is a datalog file. Then there is about 12 bytes of stuff, followed by a type descriptor. I think I've seen the file structure somewhere, but I can't find it now.
08-02-2005 04:05 PM
08-02-2005 05:34 PM
08-03-2005 03:20 PM
chavezb,
Generally, it is not recommended to use datalog file types when the files will be accessed (or in this case written) from another language. Datalog files are basically files of multiple datatypes (using clusters), so to read them in LabVIEW, you would have to know the exact structure of the cluster (i.e. the datatypes included) and wire a dummy cluster with the same datatypes to the "datalog type" input of the File Dialog.vi. If you're looking to write files in another language, I would recommend using a regular binary file type or a text file, like Dennis mentioned. That way you wouldn't have to worry about how LabVIEW stores the binary data for a cluster.
I hope this helps some. Have a great day!
Tyler S
08-03-2005 03:37 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
08-03-2005 03:40 PM