Renaming datapoints or connect old trend data to new datapoint?

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
6 posts • Page 1 of 1
funkey
Posts: 85
Joined: Mon Dec 27, 2010 1:11 pm

Renaming datapoints or connect old trend data to new datapoint?

Post by funkey »

Hello,
is it possible to create a new datapoint and connect it to history values from another datapoint which has the wrong datapoint name. Or can I rename the datapoint without loosing the trend history?
Or is there any other solution?

Thank you for any information!

Greetings
Christoph

Gertjan van Schijndel
Posts: 634
Joined: Mon Aug 02, 2010 10:37 am

Re: Renaming datapoints or connect old trend data to new datapoint?

Post by Gertjan van Schijndel »

It is possible to use your own method to fill a trend by using the trend fuction 'curveVals'.

A simpler alternative is to use 'curveHistory' to set both datapoint elements as the source for the history of the curve.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Renaming datapoints or connect old trend data to new datapoint?

Post by leoknipp »

Hello,

if you want to rename a datapoint you have to perform the following steps. Before you start with this procedure you should make a backup of the database:
-- make an ASCII-export of the datapoint with all its configs
-- delete the datapoint
-- open the ASCII-file
-- rename the datapoint at all occurences at the ASCII-file
-- import the ASCII-file
-- check if reading historical data works

Please notice that during the ASCII-import all original-values will be set again and new alerts will be generated.

Best Regards
Leopold Knipp
Senior Support Specialist

funkey
Posts: 85
Joined: Mon Dec 27, 2010 1:11 pm

Re: Renaming datapoints or connect old trend data to new datapoint?

Post by funkey »

Thank you Mister Knipp! This sounds good!
But I have another question. If the new datapoint name already exists and I import the ASCII file with this datapoint name, what ID is used for it, new one or old one?

And what if I have another DP-type for the new datapoint? Say old name is 'Analog_Test' from structure 'ANALOG1' and new name should be "New_analog' from 'ANALOG2' and everything I need are the archive values from 'value' and copy them to 'analog/value'? Is this possible?


Best Regards
Christoph Fankhauser

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Renaming datapoints or connect old trend data to new datapoint?

Post by leoknipp »

Hello,

if the datapoint-name is already used by another datapoint the datapoint will not be created. The datapoint names must be unique in the whole system.

The history is only avialable after renaming the datapoint when the same datapoint-type is used. It is not possible to move a datapoint from one dp-type to another one without loosing the history.

Best Regards
Leopold Knipp
Senior Support Specialist

funkey
Posts: 85
Joined: Mon Dec 27, 2010 1:11 pm

Re: Renaming datapoints or connect old trend data to new datapoint?

Post by funkey »

Thank you for making things clear.

Post Reply
6 posts • Page 1 of 1