Skip to content

PvAlarm and PvTimeStamp do not work for put #65

@mrkraimer

Description

@mrkraimer

The following is putTime.py:

from pvapy import Channel, PvTimeStamp
channel = Channel('PVRdouble')
timestamp = PvTimeStamp(10, 100,1)
print('start value=',channel.get('timeStamp'))
channel.put(timestamp,'record[process=false]field(timeStamp)')
val = channel.get('value,alarm,timeStamp')
print('after put timeStamp value=',channel.get('timeStamp'))

It uses the database from exampleCPP

When the database is started and the following is issued

python putTime.py

The following is the result

start value= structure 
time_t timeStamp
    long secondsPastEpoch 0
    int nanoseconds 0
    int userTag 0

after put timeStamp value= structure 
time_t timeStamp
    long secondsPastEpoch 0
    int nanoseconds 0
    int userTag 0

Maybe the problem is that none of the PvAlarm and PyTimeStamp code has a get method?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions