Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control Citadel logging

I have Pot object that reflects actual tank level. Sometimes communication in the field is broken and I have last value of Pot object in the Citadel database during comm failure. This results with incorrect data when viewing data using Hypertrend object. Is there a way to mark the trend line with different color if communication tag goes to zero or is there a way to stop logging data if communication fail.
Albert
0 Kudos
Message 1 of 7
(6,723 Views)
This would be very nice... It could be used to show failed transducers in the field as well.
0 Kudos
Message 2 of 7
(6,719 Views)

We use expressions, with the qgood parameter added to the input (level).  level*qgood(url of level)

 

Would bring value to 0 in signal is bad quality

 

We also have noticed that when using modbus, the trend will be "missing" the data if the site goes out, comm fail

 

Mike 

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 3 of 7
(6,716 Views)

Mike

 

Thanks. How does qgood know that data is not good? Is it based on data that stays the same exact value over a certain period?

0 Kudos
Message 4 of 7
(6,711 Views)

QGood() and QBad() uses the lookout quality features for object properties/data members. An example is the Red X that goes across objects that on no connected.  Some drivers do not have quality features (we have a custom driver that doesn't use quality features).  Modbus uses the quality features.

 

Good luck

Mike

Mike Crabtree - Lead Developer
Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
(866) 964-6948 / (760) 247-9512
0 Kudos
Message 5 of 7
(6,706 Views)

I cannot use value of zero as indication of bad quality, because this value can be real value of measurements. The best way is to stop logging to Citadel if comm failure occurs (mark trend line with different color would be great options too).

Albert
0 Kudos
Message 6 of 7
(6,687 Views)

Maybe this is a workaround for you.

You can create an expression  not(qgood(level)), and log this exp. The hypertrend has a datamember hideIfOff. For example, the exp is in group1, trace2, turn on hideIfOff1.2, then there will be a line when the quality is bad, and no line when quality is good.

This line can be a reference for you that indicates when the quality is bad.

Ryan Shi
National Instruments
0 Kudos
Message 7 of 7
(6,671 Views)