LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Periodic Data Analysis using a set of values

Solved!
Go to solution

Hi Everyone.....

 

       I require to create a data analysis graph,which represents the set of datas in a week or a day in graphical view.

       I have a excel sheet which automatically updates the resultant value whether OK or NOK in its 8th column as attached in screenshot.Now i would like to create a GRAPH (any graph ,user friendly) which shows,how many number of OK/NOK result has been occured in a year,month, week or in a day.Depends upon the sorting value the customer.If they require for a particular month or a year or a particular day. 

       First column in excel shows the date and time and I have to sort according to that.

 

 

Hoping for a positive response

Sudhin_sudh

 

 

 

 

 

 

0 Kudos
Message 1 of 10
(4,801 Views)

Open the excel file --> extract Colum H and search for OK or NOK. create array for OK with corresponding date and the same for NOK. Wire it to a graph.

 

You can also use Excel Get Data.vi,if you have the Report Generation Toolkit.

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
Message 2 of 10
(4,771 Views)

Thank you so much for ur reply....

         But what about the sorting of FROM date & TO date and the Graph should be in between the these two dates (FROM &TO).

 

 

Hoping for your positive replies

Sudhin sudh

 

0 Kudos
Message 3 of 10
(4,752 Views)

Use the Sort 1D array function from the Array pallette.

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 10
(4,745 Views)

Thank you for ur reply...

 

But the excel sheet is continously updated and i have to make a data analyis based on a week or a day. I am confused in how to make front panel UI which will be easier for the customer to analyse the data.

       Is there any way of clean and easy UI which will help in data analysis factor.In this data analysis i would like to make sorting based on for a week or day (or both).

       For Eg:- If i provide input FROM to TO date and press enter.I should get a graph which shows me the OK/NOK status.

0 Kudos
Message 5 of 10
(4,672 Views)

Can you post the code you did so far, so that i can have a look?

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 6 of 10
(4,616 Views)

HI Everyone...

     This is the coding that i have done for getting the time and value graph.

But here the graph is not comming accuratly to the cordinate point. The X and Y plot graph are coming accuratly but the Cordinate points of them are not accurate.

0 Kudos
Message 7 of 10
(4,586 Views)
Solution
Accepted by topic author sudhin_sudh

Hi sudhin,

 

when you want to analyze the timestamp strings in your array you should combine date and time and use the correct format string:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 10
(4,576 Views)

thank you for your reply..

        Now how can i add next days date in the next row of 1st column continously.I have to create a database for all the days. Now how can i add dates row by row automatically in the 1st column 

0 Kudos
Message 9 of 10
(4,569 Views)

Hi sudhin,

 

so you ask how to build arrays?

If you do so I recommend to take the FREE online resources to learn LabVIEW…

(Or play with array functions to learn how they work!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(4,566 Views)