10-09-2012 12:24 AM
hello,
i am lakshman here ,i have a doubt in plotting a grph i.e time stamp versus aquired tempreture values in CSV file cud anyone plez help in tis regard....:manvery-happy:!!
10-09-2012 02:18 AM
setty wrote:i am lakshman here ,i have a doubt in plotting a grph i.e time stamp versus aquired tempreture values in CSV file cud anyone plez help in tis regard....:manvery-happy:!!
This semes a new question, so please start a new thread. Thanks!
You also need to provide more information. How is the file formatted?
Do you really want [temperature vs time] (your description) or [time vs. temperature] (more typical). Are the x-values spaced equally?
You can read a CSV file using "read from spreadsheet file" and using a comma as delimiter. If it does not work, please attach the file.
10-09-2012 02:56 AM
hello sir,
As of now i have successfully read the CSV file and i have separated the sensor parameters lyk temp,sp cond etc.. ,nw my task is to plot the obtained tempreture value with respect to time stamp value which is being a big hurdle fr me to accomplish tat task ,i here by request u to do the need full....i have attached both ma MAIN VI n SUB VI ....plez do the helpfulll....\
10-09-2012 08:09 AM - edited 10-09-2012 08:10 AM
This does not help much. Can you also attach a data file?
Please chage all yuor delimiters to diagram constants containing the correct values. Your VI has everything as empty strings, which is probably not right.
You have an entire array of temperature data, but only one timestamp. This means we don't have sufficient data. Is the time stamp the time of the first point? Do you know the spacing between points?
What is the purpose of the while loop. All it does is recalcuate the same thing over and over again. Once is probably enough.
10-09-2012 08:13 AM
hi,
this is lakshman ,can any one tell me how to check whether there is a file or not in the specified path !!
since m trying to display the sensor parameters ,the sensor generates a CSV file n puts it to the folder ,m trying to program such tat my prgm shd check whether there is a CSV generated file or not ,if it finds a file it should process otherwise it shd b quite .....cud any one plez help in tis regard......
i hav attached ma code also.......
10-09-2012 08:23 AM - edited 10-09-2012 08:25 AM
You code still does not make any sense. As I said, you need to use diagram constants for the various delimiters or make the correct values the default. Why do you now use a FOR loop with 8 iterations?
Your shift register does not seem to serve any useful function.
To simply check if the file exists, you would use "check if file or folder exists" from the advanced file IO palette.
Maybe your file gets updated externally at various times. You could for example see if the "last mod" time stamp has changed. Does the file grow or does the file get overwritten with new data? How often?
You still have not attached a typical data file.
10-09-2012 08:35 AM
k sir i will attach a CSV according to tat i have assigned ma delimiters in order to separate the required portion of the file ......
10-09-2012 09:16 AM
where?
10-10-2012 01:45 AM
I TRIED ATTACHING MA CSV FILE BUT ITS NOT GETTING ATTACHED SIR............. !!
10-10-2012 02:30 AM