Project: Abakus VCL

State: All

User infoPeter Grimes
17.Feb.12 7:08
Loading TAbTrend from Database

I have a database which records all the information I record on an AbTrend Chart including the timestamp the reading was taken. What I want to do is load the previous 2000 records into the chart when the program starts. I've tried adding them using the channel.value property and also the trend.AddValue method but neither work, I'm thinking I need to add the timestamp value somewhere but can't figure out where. Any help would be appricated. Thankyou

User infoadmin
17.Feb.12 14:13
in the loop where you add the records by means of "AddValue" (or "AddDigit") right after that method call write the time in the PointerVariable for the new record
ARecord^.Time := now + n*0.001; // set the time for this record

As annex you will find a demo for that....

Files: (150 kB)

You are not logged-in
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot upload files in this forum