05-19-2009 09:41 AM
Hi,
I'm trying to displays waveforms saved in .csv files from a Lecroy oscilloscope. An example of these files is attached. I can't manage to display the waveforms (10k points), it seems Labview does not recognize the engineering format with point decimal separator. I'm not US and use Labview 7.0.
Also attached the .vi I've built (and that does't work).
Any ideas?
Solved! Go to Solution.
05-19-2009 09:58 AM
1) The 'file' was an indicator, not a control, so LabVIEW didnt know where to look for the file.
2) Why doesnt your while loop have a 'wait' function? It will use up all your CPU
3) PLEASE tell me the 'string subset' function isnt to strip off the name of the file from the path.
Just use 'strip path'.
I attached a revised copy of your VI.
05-19-2009 10:06 AM
I don't think the real problem has anything to do with displaying the selected file in a string.
If the regional settings of your pcLabVIEW installation are to use the comma to separate the whole number from the decimal, then you need to override this in the format string. I believe this is a %.;
05-19-2009 10:08 AM
The user has LabVIEW 7, so a VI in 8.6 will do them little good.
The Read From Spreadsheet File will display a dialog if no path is specified, so there's no issue with having an indicator displaying the name of the file. But, you are correct that Strip Path should be used.
As to the issue with reading the files, you have to use the correct format specifier. If you want to force to use commas as the decimal point separator, then your format string should be %,;%f. If you want to specify a decimal point then use %.;%f.
You have a secondary issue in that the data doesn't start until the 31st line. Thus, you need to chop off the header rows. Instead of using Index Array use Array Subset.
05-19-2009 10:10 AM
smercurio_fc wrote:The user has LabVIEW 7, so a VI in 8.6 will do them little good.
Doh!
05-19-2009 10:28 AM
Thanks for the strip path trick, but that wasn't the point.
I tried the %.;%f. format specifier but the numeric values still does not appear on the graph. Attached my modified vi.
05-19-2009 10:38 AM
Don't use the . after the %f
That was a period to end the sentence and not part of the format string.
05-19-2009 10:42 AM
05-19-2009 11:35 AM