Save Series data in one file

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
StevenN
Newbie
Newbie
Posts: 4
Joined: Mon Dec 13, 2004 5:00 am

Save Series data in one file

Post by StevenN » Thu Mar 30, 2006 9:27 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 30, 2006 9:43 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

StevenN
Newbie
Newbie
Posts: 4
Joined: Mon Dec 13, 2004 5:00 am

Post by StevenN » Thu Mar 30, 2006 2:15 pm

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

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Apr 03, 2006 10:41 am

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.

Post Reply