01-18-2010 11:38 PM
Hi, I saved a double waveform (from 2 channels) directly from an oscilloscope as shown in the picture, along with a text file.
How do I read this exact double waveform text file and plot it on labview so that I can do further autocorrelation with this in labview?
Currently, I tried write to text file.vi and read from text file.vi , but it only gave me a single waveform.
Your help is greatly appreciated.
Thanks!
01-18-2010 11:46 PM
It would have been better to attach the code you used to read the file and the file itself. Need to know the format of the file - header, delimiter, # of columns, etc.
I would hope that you also saved the timing information, at least the dt, if you expect to do any analysis of the data.
01-19-2010 12:14 AM
01-19-2010 07:45 AM
01-22-2010 11:32 AM
Sorry for the late reply. Here are the VIs. I got it from the examples from labview, but do not know how to edit it for it to be able to read the double waveform text file.
Yes, I have recorded down the dt for a specific point to compare.
Thanks!
double waveform textfile code:
113|scp|1|DSO6014A|AGILENT TECHNOLOGIES|MY45002433|02.02||Released build, Oct 11 2005, 20:25:25|||| 1979|#800001969±Ã * ?PbMÒñ©ü ?—˳Èå > Æ÷ µíŽ ?’£;ÙÊâ >p+)¤i, >UyŽâ0Œ: >`+)¤i, >UyŽâ0Œ: >`+)¤i,F J E i @ j ! " $ % & ' ( ) * + , - . / 0 >z×òš¼¯H2 3 4 5 6 7 8 9 : S R m l c T U < M = K L > ? ÿÿÿÿV O P Q @ ÿÿÿÿN >äøµˆãhðY W b [ _ ` ? a ? \ ] ^ ?É™™™™™š ¿ØõÂ\(ö ?ÿ333333 ¿ÁÊÀƒn˜ 1 ?É™™™™™š ?Ó×=p£× ¿øÌÌÌÌÌÍ ?ÄIº^5?} 2 ?ð @RÀ À @Q@ 3 ?ð @RÀ À @Q@ 4 ?ð @èj @Øj MATH $ , @$ @$ @$ @$ % , @V€ @V€ @V€ @V€ ' , @I @I @I @I , ?ØõÂ\(ö ?é™™™™™š @QÀ“t½ @QÀ“t½! , ?Ú=p£×> ?ñÂ\(õà @QÁL˜_÷ @QÁL˜_÷# , ?Ù™™™™™š ?ñ™™™™™š @QÀ¨ÁTɆ @QÀ¨ÁTɆ ?—ÞfðÏá ?Ì(õÂ\) ?—à&EäæŸ ¿âfffffg d è ! d
01-22-2010 01:06 PM - edited 01-22-2010 01:10 PM
What in the world is that 'double waveform textfile code'. It has notthing to do with your question and it's certainly not generated by your write program.
Edit-let me change what I said. The textfile code has nothing to do with the write function. It may have been generated by something else - such as whatever you are using for the scope in your original post.
01-23-2010 12:11 AM
Hi, sorry but that text file was gotten off (saved) from Agilent Technologies Oscilloscope DSO6014A, after I saved the 2 channels waveform (above picture) directly off the oscilloscope.
My qns is starting from scratch, using this original text file (pasted code above) that is only available, is it possible to use labview to read off from this textfile, and plot the exact save waveform on labview? Im sorry but im very new to labview hence im not sure about many things.
Someone recommend me to use the "read to text file.vi" (above attachment) to try. I first use the "write to textfile.vi" to generate a file (from the original textfile i have) to be able to run with "read to text file.vi", but it only gives me one waveform after running the "read to text file.vi". Hence, Im not sure what to do next or is it even possible to get out the 2 waveforms.
Thank you so much for your guidance and patience.
01-23-2010 12:18 AM
What you have pasted above is not a text file. It appears to be a binary file with a text header.
If that file was created by the scope, then you need to read the manual to understand the format. Is it really a screen capture save to a graphics format? What were the exact steps you took to get that file.
It sounds like you are not only new to LabVIEW but also very new to instrumentation and basic file concepts.
Also, even if you had a text file, pasting it into the message body would have incorrect. Attatch the actual files when asked.