09-16-2007 10:40 PM
09-17-2007 12:32 AM
What version of LV are you using ? From LV 8.x, the Read from Spreadsheet File.vi has become polymorphic & it gives output in the form of 2D array also. See the pic...
If you re using LV 7.x or below, you ve to convert the String output you got from the Read File.vi, into a 2D using the Spradsheet String to Array.vi...
09-17-2007 02:08 AM
Thanks a lot Partha !
I'm using LV 8.2.
I attached my file.
please check my file..
Thank you.
Kevin
09-17-2007 05:23 AM
You ve forgot to attach the .csv file with your VI; never mind...
Change the polymorphic selector to String instead of Double & create corresponding new indicators and run the VI.
I think you ll get what you wanted.
09-17-2007 10:25 AM - edited 09-17-2007 10:25 AM
Message Edited by smercurio_fc on 09-17-2007 10:30 AM
09-17-2007 11:02 AM - edited 09-17-2007 11:02 AM
@smercurio_fc wrote:
Also, you should not be basing the location of the path to read from the location of the VI. You should use a file path control because:
(a) You cannot assume the file to read is in the same location as the VI
(b) If this VI is build into an application the path will be different.
Yes, if you built an application, the relative path will be different. Also, if the application is properly installed in the "program files" folder, there will be potential problems in windows Vista if you want to write there.
Still, in a simple development environment it is often convenient to keep data next to the VI in order to test code, so relative paths make sense. Here's the (near) equivalent code to whatever you constructed with the while loop.
It is very important to never (!!!) use path-to-string and string-to-path when manipulating paths, because it will immediately break the code on a different platform (windows, mac, linux). You should use "strip path" and "build path" exclusively! Paths should never exist as strings, just a paths.
Small differences:
Exception:
The only place where path-to-string and string-to-path should be used os for OS specific tasks, such as forming a commandline for "system exec".
Message Edited by altenbach on 09-17-2007 09:04 AM
09-18-2007 07:12 PM
parthabe, smercurio… ,altenbach Thank you so much.
I solved my probledm of the program.
Thank you so much!
regards
Kevin
09-18-2007 08:24 PM
Attached shows a quick cleanup. As mentioned, all you really need is the array subset and waveform graph. Isn't LabVIEW cool? 🙂
09-18-2007 09:03 PM
Thank you so much.
Thank you for your concern.
Have a nice day!
Kevin.