-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels