From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-18-2013 05:53 AM
hi all,
please help me on how to convert .txt file to graph in labview. the txt file need to be the input file. i attached the txt file. iIt consist of 7 datas according to the date and time. thanks.
Solved! Go to Solution.
12-18-2013 06:02 AM
12-18-2013 06:17 AM
Hi varsha,
whoever created that text file: (s)he did an horrible job!
- The formatting of the text is completely messed up: it mixes TABs and SPACEs as delimiter.
- There is no LF/CR in it to determine your "7 datas".
- There seems to be no timestamp column in the file: I only noticed just one timestamp in the header ("6/8/2009 5:18 PM"). How should that be applied to the data?
So your task is to provide:
- a better formatted text file (where are the "7 datas" in a file of nearly 100kB size?)
- a description of the file content (regarding timestamp information)
12-18-2013 11:06 PM
hi Gerd,
attached is the file which i already sort accordingly. Can u help me to check whether this can be convert to graph or not. thanks
12-19-2013 01:41 AM
Check the image if that's what you need. Sorry i didn't understand the problem clearly. I just opened the txt file and gave the output to waveform graph as i said earlier, this is what i got. Let us know if it is not what you expected. You need to tell us what is your x-axis and y-axis in the data.
12-19-2013 02:31 AM
Hi varsha,
- your text file still uses a wild mix of TABs and SPACEs as delimiter...
- your text file still doesn't show "7 datas", atleast not by column
- your text file still doesn't use any LF/CR to delimite lines
Please give a full description of the file/data format...
12-20-2013 10:06 AM
Hi,
Attached is the image that im looking as output from the .txt file.
Thanks!
12-20-2013 11:06 AM
12-20-2013 11:20 AM
The data file that you attached does not match at all with that image. You can verify that yourself by viewing the file in Excel or a simple text editor. There are columns with values ~50 so importing a specific row does not work. Importing a specific column would not work because there are not enough values. If the image is from an acquisition, it would seem that the export to file was done improperly.
12-24-2013 09:53 AM
Sorry for the late reply.
Attached is the .vi file which converts the .txt file to the output img i attached earlier. I have also attached the flow on how to obtain the desired output as mentioned. The issue is I'm not able to find which block in the .vi file that is performing the transformation of the .txt file (the input).
Could anyone help advise?
Thanks and Merry Christmas!