Green to the whole Citect2018 platform

Hey all, Pretty green to the whole Citect2018 platform. I was wondering if i am able to get the tooltip to read a process variable. Its not as easy as putting in the tag name. Any help would be much appreciated. Thank you

  • I have moved your question to discussion forum. So it can be more visible to community members.

  • You could use the DspSetTip() cicode function for that. The trick is to call this function from one of the properties of the graphics object that allow a cicode expression.

    I assume you would like to continuously update the tooltip with the current tag value. For this I usually create an expression in the 'Hidden When' property, because expressions in this property are processed each page scan. Your expression could look like this:

    DspSetTip(DspGetAnCur(), MYTAG) AND FALSE

    I will explain this expression:

    - DspGetAnCur() retrieves the AN-number of the object, needed for DspSetTip() to set the tooltip of the correct object
    - MYTAG is the name of the tag you would like to display the value of
    - The addition of 'AND FALSE' ensures the expression always evaluates to FALSE, otherwise your object could become hidden in runtime

    Disclaimer: I have not tested this myself, so please try it and report back.