6 Replies Latest reply on Oct 25, 2016 3:44 AM by Eugene Lee

    Datalink get value from another tag if bad

    MFuad

      Hi guys, i've been doing few automation with datalink and vba. One of the module is to get a value from another tag, if the intended tag is bad.

      So far i've manage to achieve this, by checking the results of PiArcVal. If its not numeric, the vba will then rerun the PIArcVal with another tag. But problem happen when the module meet a String type tag. It will get the value from another tag, even though the intended tag is good value(but it's a string).

       

      Any suggestion on any logic that i can do to attend this matter?

       

       

      Many thanks in advance!