09-22-2005 06:42 AM
09-22-2005 07:03 AM
LabVIEW, C'est LabVIEW
09-23-2005 04:32 AM
Hi Guys,
It is probable as Jean-Pierre said that the file has not been closed off properly from the program that wrote it. If you can get this program to release the file and then read it in normally then that would probably be the easiest solution.
If for some reason you can't get the writing program to release the file to LabVIEW but you can get it to open in Excel then it is possible to open up Excel programmatically from LabVIEW and grab the file from there. The problem is you can't just use a Read from Spreadsheet File.vi in LabVIEW as Excel puts a load of its own formatting around the data so LabVIEW can't recognise it.
I have a program here that will show you how to open up Excel and grab the data from there using ActiveX. I would advise however that if you can get the file to be released properly and just read it in normally as an ASCII file into LabVIEW straight, then you do this as it will be a simpler and easier method to get working.
Hope this helps,
Best regards,
Peter H.
Applications Engineer.
NIUK.