09-09-2009 01:13 PM
Hi,
I have text files coming in, each to add 250 values to a channel every 30 seconds. I am writing some code to massage the incoming data, and append the 4 channels to a single text file.
So I have 4 channels in a text file which continues to grow.
How do I make Diadem display all new data as the text file grows, to show analysis on the channel data in real-time?
Thanks!
My text file looks like this, and will grow by new lines as I receive them:
height,width,length,volume
15.00,13.460125,13.196651,12.123
13.404634,13.545893,13.171975,12.234
15.10,13.460125,13.196651,12.345
13.404634,13.545893,13.171975,12.456
09-09-2009 01:36 PM
Is the data from older tests? Or is it data that is continously being read?
You can just use the 'read from spreadsheet file' to get all the data from the file into an array.
Then you can append the new data onto the end of that array, and send the new 2D array to a waveform chart or XY graph depending on how your data is spaced.
09-09-2009 01:40 PM
The data is coming in every 30 seconds, at which point my VB.NET code will append all the new values to the big text file.
You can just use the 'read from spreadsheet file' to get all the data from the file into an array.
How/where is this done? Is this a manual operation? I need this to be automatic. The customer needs to see real, live data as it is generated.
09-09-2009 01:41 PM
09-09-2009 01:44 PM
In your LabVIEW palette, look under
Programming >> Array >> Read From Spreadsheet File.vi
You can use the 'All Rows' output to get a 2D array of the data.
If you put this operation in a while loop, with a 30 second (wait), it will continously read the newest data.
Just remove the first row, since it will just be column headings.
Then you can send this data to a waveform graph.
I'm sorry I cant visually show you some code, I do not have LabVIEW on the computer I am using right now.
Maybe someone else can show you a quick example
09-09-2009 01:46 PM
I am not working with Labview, this is all being done in DIADEM. I posted to the wrong forum. Sorry for the confusion!
09-10-2009 01:05 PM