LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Date and time on graph ( read from Excel)

Solved!
Go to solution

Hi everone, i m new to this forum.
I am stuck with one of my project. 
The program is that, READ the excel file and plot it on the graph.  
its a recorded Solar power output data sheets, basically i m trying to see the graph of outputs and readings at different time.
I have problem reading the time colum, i want to show as time stated on the excel on the graph.  
and it will take like 4-5 mins to plot the graph as it has 9000+ points.  any suggestion to cut down the points?
I am new to labview.

0 Kudos
Message 1 of 11
(3,706 Views)

Why cant i upload my Excel file to forum 😞

0 Kudos
Message 2 of 11
(3,705 Views)

Certain file extensions are not allowed. It is possible that your excel file matches a pattern. You can always zip it up and attach a zip file of it.

 

That said, you seem to be reading a csv file which has nothing to do with excel.

 

Your Vi contains way too much code. It is overly complicated for such a simple task. Why do you create 3D arrays of strings?? Why do you read the eintire file over and over again just to look at a single row each time? Reading once is enough! No wonder this is slow!

0 Kudos
Message 3 of 11
(3,701 Views)

I followed some ppl example from the forum.
i have no idea how to make it simple>
yahh. the file type is .csv    its like excel with lots of rolls and colums . i will try to convert it and upload once i reach home

0 Kudos
Message 4 of 11
(3,691 Views)

This is the file we are trying to read.

0 Kudos
Message 5 of 11
(3,685 Views)
Solution
Accepted by topic author mintonemin

Here's a very quick draft on what you could do.

 

Of course you could also extract the headers and place them in rings for a more natural selection. Only the parts with the controls belongs in a loop if the users should be able to select the columns dynamically. You also need to parse the time column differently. Modify as needed.

0 Kudos
Message 6 of 11
(3,663 Views)

WOW ! THanks for the HELP !
It Really Cut down the time !!
Is there anyway that we could show the time  reading as it shown in the excel.
like Collum B. start from 55
Example 08/11/2012 6:50

0 Kudos
Message 7 of 11
(3,638 Views)

Try something like this....

 

 

0 Kudos
Message 8 of 11
(3,624 Views)


LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
NI-488: Command requires GPIB Controller to be Controller-In-Charge.

Error 1 occurred at Scan From String (arg 1) in Step 1MOD2.vi

I got error. 😞

0 Kudos
Message 9 of 11
(3,622 Views)

Did ou use the same file you attached earler ( 121113-200002_UG_REP28.csv) as input. Works fine in LabVIEW 2012.

 

Maybe you are using a file with a different time format in that colum?

 

Did you modify my VI in any way, e.g. pick a different column for X?

0 Kudos
Message 10 of 11
(3,616 Views)