Page 1 of 1

History Read Node

Posted: 19 Jan 2015, 11:20
by Jubish
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 ?

Re: History Read Node

Posted: 19 Jan 2015, 14:48
by cacamille3
Instead of doing

Code: Select all

variable.AccessLevel = AccessLevels.CurrentReadOrWrite;
or

Code: Select all

variable.AccessLevel = AccessLevels.HistoryReadOrWrite;
do:

Code: Select all

variable.AccessLevel = (AccessLevels.CurrentReadOrWrite | AccessLevels.HistoryReadOrWrite);
or

Code: Select all

variable.AccessLevel = AccessLevels.CurrentReadOrWrite; 
variable.AccessLevel |= AccessLevels.HistoryReadOrWrite;
when you set the AccessLevel you want for the Node.

Re: History Read Node

Posted: 30 Jan 2015, 07:11
by Jubish
Thanks a lot. It worked :)