07-26-2012 11:28 AM
The file is the output of a data acquisition system. I need to get the data as a 2D array (channel name and numeric data corresponding to the channel) so that i can use the data for graphical displays.
07-26-2012 11:53 AM
From LabVIEW
A window will open that will allow you to search for examples by category, key word, etc.
07-26-2012 11:57 AM
I would like to know if reading the .dat file can be directly done or it depends on the program that generated the .dat file. That means whether it is required to know how the data was written to the file or if I can directly get the contents? Thanks in advance.
07-26-2012 12:02 PM
It would depend on how the file was written.
You should have some information regarding how the data is stored (is it delimitied in some way?)
If the data is delimited or in a recognizable spreadsheet array format, you will be able to import the data without (much) issue; regardless of whether the data is stored as text or numeric.
07-26-2012 12:05 PM
Thanks !!!.....Let me figure out how the data was written and then I will try to read it....hopefully I will come back with some good news..:)..
07-26-2012 12:05 PM
The only difference between reading a binary file versus a text file is that when reading text, the function translates end-of-line characters as appropriate (different operating systems have different representations for the end of a line of text). Once you open a file, you can use both "Read from Text File" and "Read from Binary File" as appropriate for each section of the file.