DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh cannel data from ever growing text-file

(I previously mis-posted this in the general forum, sorry!)
 

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

0 Kudos
Message 1 of 2
(3,637 Views)
Hi Dave, I thought you said in your other post that each quantity was in a file of its own? Well, if they're all in the same file that simplifies matters a bit. DIAdem does not have a built-in monitoring feature, but you could run a VBScript that re-loads the data up until now and runs the analysis and plots the report graphs, tables, etc. This would give you a periodically updating view into your ongoing data acquisition. Note that there is an issue with ever-growing ASCII data files-- they take longer and longer to read. How big might these data files get? 10 MB? 100MB? 1GB? Really, if they're going to get bigger than a few MB you ought to consider segmenting them-- as your other post indicates they are. Then if time becomes an issue, the VBScript could keep track of which data files it's already loaded and only load the new ones. Again, please send me the data files you have, and I'll make concrete suggestions, Brad Turpin DIAdem Product Support Engineer National Instruments
0 Kudos
Message 2 of 2
(3,613 Views)