Logging previous value

3 Posts
2 Users
0 Likes
35 Views
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Hello,

One of our customers request the following: Possibility to log and display in LogViewer the last and previous value when a data change.

So, I remembered there is a special function that has been done to be 21CFR11 part11 compliant. The trick was:
1. Add the following line for 1 text attribute in the file cvarconf.dat
Set=%PreviousControlValue% for example

[ATTRIBUTETextAttribute 5]
DistributedMode=Dynamic
Set=%PreviousControlValue%

2. Don't forget recording the corresponding attribute in the archive

3. You can display now the attribute in one LogViewer column (here #@A5)

I just checked and it works but it looks like there is some limits:
a. Working only on Proprietary archives (maybe a bug I will double check that. I will tell you later)it works with hds, i just needed to restart pcvue!
b. Working for the event "User Actions / Command" on a REGISTER
c. NOT Working for the event "User Actions / Command" on a BIT
d. NOT Working for the event "Bit changes" when a BIT is changing value

My question is: For c. and d., is it working as designed or is it bugs?
For the d. I feel it is as designed because the parameter's name is PreviousControlValue but for the c. I would say it is a bug

Any experience on that?

Nico

 
Posted : 25/01/2017 1:52 pm
b.lepeuple
(@b-lepeuplearcinfo-com)
Posts: 149
Estimable Member
 

c is certainly a bug.
d is not surprising and actually Ok (it is not a command)

 
Posted : 20/02/2017 9:16 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Finally I am not sure that's a bug as the previous value of a bit change is predictable. Previous of False is True...
But, I agree it could be NS.

Anyway, my customer wanted only for the Registers 😉

Nico

 
Posted : 21/02/2017 9:54 am