Closed gopikaops closed 4 months ago
When you get a response, it can be data ItemData
or a status ItemStatus
. The status is an error that communicates why you didn't get data. These stack traces tell you that you didn't account for ItemStatus
coming back because the ItemStatus
class doesn't have a data
attribute; only ItemData
has a data
attribute.
If you're using an .is_reading
check or .is_reading_for
like below, the else condition will be an ItemStatus
. You can print that status to get more information.
# Process incoming data
async for evt_res in dpm:
if evt_res.is_reading_for(0):
# This 0 argument matches the tag in `add_entry`
if evt_res.is_reading_for(0):
print(evt_res)
else:
# This is responses to tags that aren't 0
pass
else:
# This is likely a status response
pass
# You could print the status
#print(f'Status: {evt_res}')
You are getting an error because what you are requesting doesn't exist.
Here are the two event configurations I found for B:VIMIN.
e,14,e,0
and e,10,e,0
So, when you request
B:VIMIN@E,10,S,0 and B:VIMIN@E,10,H,0
The logger can't find a match to your request. It's probably returning a "node not found" error, which tells you that no configuration matches your request.
If you want data with these configurations, you must create entries in D43 for them.
Let me know if I missed the mark on this. Let's figure out what you need!
Hi Team I am trying to get Hardware and Software type event data. This is my DRF request - B:VIMIN@E,10,S,0 and B:VIMIN@E,10,H,0
I am referring the DRF - https://www-bd.fnal.gov/controls/public/drf2/#event
This is the error I am getting -
Here is my code - https://github.com/fermi-ad/gmps-ml/blob/main/collection_gmps_ml_project_parameters.py Additionally, I am able to get all the data with default type : B:VIMIN@E,10,E,0