Past value in event logger

7 Posts
3 Users
0 Likes
32 Views
(@Anonymous 641)
Posts: 64
Trusted Member Guest
Topic starter
 

Hi,

How can I show past value in the event log? This is available in 21CFR11 demo project.

 
Posted : 10/09/2020 5:23 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hi Nitesh,

What kind of values you want to show?

NIco

 
Posted : 10/09/2020 5:46 pm
(@Anonymous 641)
Posts: 64
Trusted Member Guest
Topic starter
 

Hi Nico,

I am attaching a snap from CFR demo project in which I am changing a setpoint value from 0 to 10, 10 to 11 and 11 to 12. I want to implement this in my project. In the demo project, they have shown this value from extended attribute #5 but not sure from where extended attribute #5 is getting past value.

 
Posted : 10/09/2020 5:55 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

OK Nitesh,

First of all, you must set the Extended Attributes (i.e Attribute 5) with the variable name you want to show
Then, if you want to retrieve data you must configure to store it. You can find this information in the Help here

In your case you must add #@*A5

Nico

 
Posted : 10/09/2020 6:54 pm
(@Anonymous 641)
Posts: 64
Trusted Member Guest
Topic starter
 

In the CFR demo project, I add a new variable TANK2.PUMP1.SPEED.SP.

I didn't enable external attribute, please refer attached screenshot (no .1). Still, I can see pass past value for this new tag in the event viewer. How this is working without an extended attribute. Please refer attached screenshot (no.2).

 
Posted : 11/09/2020 1:30 pm
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

Hello, everyting should be described in the help:
Extras and Add-ons > 21CFR Part 11 > Providing an audit trail > Logging the previous value

When logging the change in value of a register variable as a result of a Send-Register animation it can be useful to log the previous value of the register as well as the new value. (The new value is logged by default and may be displayed using the #C mnemonic in the Log Viewer configuration.)

You log the previous value of the register by using an extended attribute configured to display the previous control value. To configure that you must manually edit the configuration file VARCONF.DAT to add the line

Set=%PreviousControlValue%

after the attribute's definition.

In the following example attribute 5 has been configured in this way.

[ATTRIBUTETextAttribute1]
DistributedMode=Static
[ATTRIBUTETextAttribute2]
DistributedMode=Static
[ATTRIBUTETextAttribute3]
DistributedMode=Static
[ATTRIBUTETextAttribute4]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute5]
DistributedMode=Dynamic
Set=%PreviousControlValue%
[ATTRIBUTETextAttribute6]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute7]
DistributedMode=Static
[ATTRIBUTETextAttribute8]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute9]
DistributedMode=Static
[ATTRIBUTETextAttribute10]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute11]
DistributedMode=Static
[ATTRIBUTETextAttribute12]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute13]
DistributedMode=Static
[ATTRIBUTETextAttribute14]
DistributedMode=Dynamic
[ATTRIBUTETextAttribute15]
DistributedMode=Static
[ATTRIBUTETextAttribute16]
DistributedMode=Dynamic
[ATTRIBUTEBoolAttribute1]
DistributedMode=Dynamic

Once this change has been made you can log the previous control value by adding the attribute to the Attributes to record field of the Log Filter configuration, for example #@A5.

To display the previous control value in the Log Viewer you add the attribute to the Column Format field of its configuration dialog.

 
Posted : 11/09/2020 2:58 pm
(@Anonymous 641)
Posts: 64
Trusted Member Guest
Topic starter
 

Thank you. It is working now 🙂

 
Posted : 11/09/2020 3:35 pm