I am implementing the History Read functionality. I have created a node which has the history details. The history Data is read from the database. The history read works fine.
But the Node which I have created for should show the latest value in the Table. The Access level I had given was CurrentReadOrWrite which shows the latest value in the UA Expert. After implementing the History Read I had to change the Access level to HistoryRead or HistoryReadORWrite. Due to this I am not able to see the Latest Value (In UA Expert- Data access View)
How to get both access leveles ?
History Read Node
Moderator: uasdknet
-
- Hero Member
- Posts: 73
- Joined: 15 Feb 2012, 21:43
Re: History Read Node
Instead of doing or do:
or
when you set the AccessLevel you want for the Node.
Code: Select all
variable.AccessLevel = AccessLevels.CurrentReadOrWrite;
Code: Select all
variable.AccessLevel = AccessLevels.HistoryReadOrWrite;
Code: Select all
variable.AccessLevel = (AccessLevels.CurrentReadOrWrite | AccessLevels.HistoryReadOrWrite);
Code: Select all
variable.AccessLevel = AccessLevels.CurrentReadOrWrite;
variable.AccessLevel |= AccessLevels.HistoryReadOrWrite;
-
- Sr. Member
- Posts: 12
- Joined: 22 Dec 2014, 10:39
Re: History Read Node
Thanks a lot. It worked