Applies To: |
|
Summary: |
Question: When I move trend history files to another directory Citect will not access those files. Is there any work around to access those history files? |
Solution: |
Unfortunately there is not a work around
for this problem if your Citect is prior to version 5. Citect
provides a partial solution to this problem in version 5, and a
complete solution in 5.31 and later.
The problem is due to the following: Citect 5.31 and later only use the path shown on the Trend Tags form and ignore the path recorded in the HST file. So, moving a trend in 5.31+ just requires that the HST and data files both reside in the new path specified in the Trend Tags form. For previous Citect 5 releases, see below. I will give an example as to what is happening:
will use the File Name [data]:trend1 as default. Let us assume that the substitute path [data] in the Citect ini file is:
Then the following trend files will be created in the c:\citect\data directory.
trend1.hst file will store the following list:
If you copy the files to a new directory, say c:\citect\new and change the substitute path [data] to
then the trend system will be able to open and read the master file trend1.hst to find that the paths to the trend1.000 and trend1.001 are still c:\citect\data. So, the trend system will fail to access to the tend history files. Extended Trend tags form:
where [user1] is a user defined substitute path. The problem is exactly the same as in the first example. Citect has now a fix for this problem in version 5. case 1: Substitute path is used (since most users use the standard form the default will be substitute path) You can copy your trend files to another directory as long as you change the substitute path to point to the new directory. Example : Original
and trend files are [data]:xxxx If you copy the files to c:\citect\new then you are expected to change
This applies to user defined substitute paths as well:
If you copy the files from h:\trend1 to m:\new1 then t=you should change
case 2 : Absolute path is used:
Since the solution is not as easy as case 1 I have introduced a new parameter : [TREND] DataPath. If this parameter, DataPath is blank then the trend system uses the original directory, ie. c:\citect\trends to access the trend files. If DataPath is pointing to a new directory then all trend files will be expected to be in this directory. For the above Trend tags form if you have
then the trend1.hst, trend1.000.... are expected to be in m:\trends not in c:\citect\trends. There is no work around for this problem. The problem is fixed in version 5. Note: A Trend Renamer utility is available from the Citect.com Toolbox for editing the paths and trend names in HST files for Citect v5.xx trends. This allows the files to be moved regardless of path substitutions. This also allows for large systems where the trend data must be split into multiple directories for better performance. This utility is not needed in Citect 5.31 and later unless you want to rename the trend tags (which Citect still does not support). |
Keywords: |
Related Links
Attachments