Communication with another IOC #124
-
I'm working on an application that will use several softiocs, and I'm try to figure out how to access the PVs from other IOCs. I would typically just "import epics" and use "epics.caget('PV_name')". But I've found that in a script that imports from softioc, I get an error when trying to do this: "cannot connect to 'PV_name'." For instance, the following script will work, unless I uncomment the softioc imports. Any insight on how to get or put to other IOCs would be very much appreciated.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I unfortunately don't know exactly what package you are referring to when you say The way to solve this is to use either cothread or aioca depending on your preference for the |
Beta Was this translation helpful? Give feedback.
I unfortunately don't know exactly what package you are referring to when you say
import epics
- there appears to be no package on PyPi of that exact name. I can say that the likely issue is regarding threading. The default softioc will start acothread
callback thread, and the main process must occasionally yield to allow cothread to run.The way to solve this is to use either cothread or aioca depending on your preference for the
async
keyword - those documentation links should explain the differences.