02-27-2009 05:40 PM
I have made a code that reads values from the text file. Now I want to produce a graph that can shows the number of items in the files (X-axis) and the values in the text file (Y-axis).
Solved! Go to Solution.
02-27-2009 06:47 PM
02-27-2009 07:12 PM
Hi Ak star,
I didn't see your file.
Therefore, I cannot help you much, but I can give some suggestions from the vi you post:
1. When reading text file, you should use read from text file instead of read from binary file. Then, use Frac/Exp String to Numberto change from String to Number, or if your data is tab-delimited, using read from spreadsheet file which will change string to number automatically is also applicable.
2. If you've only one data, you can plot an array of number to waveform graph directly.
3. If you've two data, one for x and another for y, use XY Graph to plot. You can put XY Graph down, and press Ctrl+H. Then, point your cursor to XY Graph icon in block diagram to see how to wire a data to XY Graph.
Regards, Kate
03-02-2009 06:03 AM
03-02-2009 06:26 AM
Yes, you are correct about the cause of the error.
If you want some help, you really need to post an example of the text file or at least show what the results from the file read are.
03-02-2009 10:32 AM
03-02-2009 10:38 AM
03-02-2009 01:18 PM
Hi, i am not sure if this is right and i am using an index array. Also where do i connect the read from spreadsheet file or do i have to replace the reading from the text file with spreedsheet one.
03-02-2009 03:02 PM
03-02-2009 03:04 PM