Hi,
is it possibel to configure tag history on an single array element of a tag (data type: string array).
E.g. only write the string values of Tag[0] to my Database. I don't need the other array elements of that tag ( Tag[1-200] ).
Thanks in advance.
Greetings,
Luca
Found an easy workaround. If there is a better way please let me know.
Note: it's only viable if a limited number of elements need to be historized
Workaround:
- create a ReferenceTag that gets its value by refering to the array tag element like: Tagpath/value[0]
- use tag history on the reference tag, so i indirectly get only the Values of Tag[0] written into my Database.
2 Likes
Good solution. I doubt there's a better one: It's simple, clear, and uses basic built-in features.
You should probably mark your own post as solution.
Maybe note that it's only viable if a limited number of elements need to be historized.
3 Likes
Alright, thanks for the reply.
I'll keep it "unsolved" until tomorrow, just in case there is a another good idea.
You can always change the marked post if a better solution comes along.
If the source of the string array is an Ignition native driver, you might consider just making a separate OPC tag for that one element. (Or all of them. No performance hit for a native driver--it'll optimize anyways.)
2 Likes