LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i pull out data from a spreadsheet only from the current month?

Data is constantly being fed into a spreadsheet using a VI, this data comprises of such things as month, year, weights, std dev, etc.  I want to do some data manipulation on the current months data while the VI is running, how can I pull out only the data relating to the current month?  Each input into the spreadsheet stores the values for that run on one row, and there are perhaps 150 runs each month
 
Any thoughts are greatefully received
 
Thanks
 
Ross
0 Kudos
Message 1 of 6
(2,909 Views)

Morning Ross h,

Do you actually write the data to a .xls file or a .txt file?  It would be a lot easier and less processor hungry to use .txt files, as with .xls files you would need to use ActiveX functions.

AdamB

National Instruments

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 6
(2,888 Views)

Hi Ross,

I thought I would go away and make you an example VI for the results xls that you have sent me.

Here it is:  I have added a few comments here and there but if you need more info please don't hessitate to post back on the forum

Hope if helps

 

AdamB

National Instruments

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 3 of 6
(2,868 Views)

Thanks, I am afraid I only have version 7.0, and so the VI will not open.

 

Thanks

 

Ross

0 Kudos
Message 4 of 6
(2,862 Views)

Hi Ros,

 

I've saved you a version of the code that will run for 7.0

Try this

 

AdamB

Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 5 of 6
(2,857 Views)

It works!!

 

Thank you very much

 

Ross

0 Kudos
Message 6 of 6
(2,853 Views)