[Python] EPICS camonitor only returns when value changes

Discussão em 'Python' iniciado por Stack, Maio 16, 2025.

  1. Stack

    Stack Membro Participativo

    I'm interested on monitoring an EPICS PV's value and timeStamp. The problem I've is that the monitor only activates when the value changes, not when the timeStamp changes. Is there a way to achieve this?

    This is an example to try to illustrate the problem:

    EPICS record definition:

    record(ao, "examplePV") {
    field(PINI, "YES")
    field(VAL, "0")
    }


    Run it with softIoc

    softIoc -d test.db


    Create monitor with pyepics

    from epics import camonitor
    camonitor("examplePV")


    Change PV multiple times from another terminal

    > pvput examplePV 1
    > pvput examplePV 1


    Output in Python terminal

    >>> examplePV 2025-05-16 11:18:32.12083 1
    >>> <---!! I expect two messages!

    Continue reading...

Compartilhe esta Página