10-01-2009 03:55 PM
I have an excel data sheet with a starting time of 20 seconds and ending in 30 seconds. There are about 700 data points "Voltage" versus time. I would like to take the time and voltage and output to a DAQ module. I tried to read the excel sheet. But no luck. I am trying to increase pressure from 20 PSI to 300 PSI in 20 seconds. Our custumer has a strang graph of the inlet pressure. I am trying take the data and re create the same conditions the custumer saw at his site. I am trying to plot the second colum versus the third colum.
Any Ideas?
Thanks
Philip Nielsen
10-01-2009 04:11 PM
pnielsen@gplains.com wrote:I tried to read the excel sheet. But no luck.
What did you try? Are you using the Read From Spreadsheet File VI, or are you using ActiveX? The former will not work since you have an Excel workbook, not a text file, which is what the Read From Spreadsheet File VI works with. For a simple example on reading an Excel workbook using ActiveX, see the VI in this message. That VI returns the data as strings, but you can easily change the datatype to DBL in the code.
For more examples you can look over the Excel thread (please note that thread is meant as a repository of links - do not post questions to that thread).
10-01-2009 04:40 PM
That makes sense. I was trying to read from the excel worksheet. I will read the links that you provided me for more understanding.
Thank You,
Philip
Oh how do I add Kudos?
10-01-2009 05:23 PM
10-07-2009 08:14 AM
I was able to pull ecell data from a worksheet using 2009 labview. I created a 2d array. I plotted the data on a waveform chart.This was to prove I was grabbing the data correctly. The scaling was off. But after some time I was able to duplicate the excel graph exactly. In 10 seconds I plotted a 150 data points onto a waveform chart. I used an index array to pull single data points from the data array. But now I have a150 data points that I am trying to output to a DAQ "A0". How do I plot the data points versus time? I am trying to duplicate a condition that our custumer saw.
Thank You
Philip
10-07-2009 09:21 AM
10-07-2009 09:52 AM
Thanks for the link. I need to look over the block diagram for awhile. I am still a little confused.
Thank You,
Philip
10-07-2009 12:54 PM
10-08-2009 10:50 AM
I sent the wrong excel worksheet. The fist column is time in seconds. 20 seconds. The seond column is pressure. The time scale is deffinitly wrong as you stated in your earlier email.
I massage the data in the waveform graph to get the graph to match the 10 second interval.
Philip
10-08-2009 04:17 PM