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
Renaming datapoints or connect old trend data to new datapoint?
Search
-
- Posts: 634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Renaming datapoints or connect old trend data to new datapoint?
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.
A simpler alternative is to use 'curveHistory' to set both datapoint elements as the source for the history of the curve.
Re: Renaming datapoints or connect old trend data to new datapoint?
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
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
Re: Renaming datapoints or connect old trend data to new datapoint?
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
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
Re: Renaming datapoints or connect old trend data to new datapoint?
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
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
Re: Renaming datapoints or connect old trend data to new datapoint?
Thank you for making things clear.