Hey All,
I am wondering why the getdataattime endpoint doesn’t seem to return some of the meta data type fields like DESC or EGU? I tried to go into the policies.py file and add in some more fields to export but not sure I am doing it in the right
spots. These are the two parts in policies.py that I thought would need to be changed to handle the other fields. Although I am still not sure why the getdataforpvs is able to export the meta data fields.
# Define a list of fields that will be archived as part of every PV.
# The data for these fields will included in the stream for the PV.
# We also make an assumption that the data type for these fields is the same as that of the .VAL field
def getFieldsArchivedAsPartOfStream():
return ['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL'];
if "RTYP" not in pvInfoDict:
pvPolicyDict["archiveFields"]=archiveFields
else:
pvRTYP=pvInfoDict["RTYP"]
if pvRTYP=="ai":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
elif pvRTYP=="ao":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL']
elif pvRTYP=="calc":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
elif pvRTYP=="calcout":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
elif pvRTYP=="longin":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
elif pvRTYP=="longout":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR','DRVH','DRVL']
elif pvRTYP=="dfanout":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
elif pvRTYP=="sub":
archiveFields=['HIHI','HIGH','LOW','LOLO','LOPR','HOPR']
pvPolicyDict["archiveFields"]=archiveFields
return pvPolicyDict