Page 1 of 1

Save Series data in one file

Posted: Thu Mar 30, 2006 9:27 am
by 9340257
Hello,

How could I realize the following?
1. Get data from measurement instrument.
2. Display the data in a Chart (only one TLineSeries).
3. Make some calculations.
4. Save Series data in one file (txt or xml or something else).
5. Clear Series
6. Go on with step 1. (proceed 100-200 times for each experiment)

The problem is step 4:
How to save the data for each experiment in one file (As an archive for the experiment). Use this file later to retrieve the data easy in another program with TChart descendant.

Who has an idea?
Steven

Posted: Thu Mar 30, 2006 9:43 am
by narcis
Hi Steven,

Please see Tutorial 12 - Exporting and Importing Charts, specially the Exporting data section. You'll find the tutorials at TeeChart's "Docs" folder in TeeChart7Manual.chm. You'll also find examples at the features demo, available at TeeChart's program group, at All Features\Welcome!\Exporting\Chart Data.

Posted: Thu Mar 30, 2006 2:15 pm
by 9340257
I saw the information in the tutorial and in the help-file about Import and Export.

But my problem is how to save in one file and add new series data in that existing file. Not generate a new file for each series data! That means after the experiment I have hundreds of files only with a few data.

If it is possible in txt file, then it should look like a spreadsheet.

Steven

Posted: Mon Apr 03, 2006 10:41 am
by Pep
Hi,

one way would be to load the contents of the txt file into the Chart and then do the export, but depending on the amount of data this could decrease the speed.
Another way around is to export manually, creating the txt file as your own and save the data.