Hi all
do you know of any problem between EpicsSharp and Python during enum PV access?
I can correctly get the value of an ENUM variable from caget, but in Python I got an unexpected datatype (time enum). I am using the pv.type attribute described here ( http://cars9.uchicago.edu/software/python/pyepics3/pv.html ) to get the PV information. I have the same problem using the Epics implementation in ControlSystemStudio.
Thanks a lot
gigi
Hi Gigi
I am not aware of any issues, but I can have a look.
Can you provide a minimal, complete, and verifiable example for both the Python and .NET parts, please?
Thanks
DJ
Hi Daniel, thanks a lot for the fast reply. I can prepare both example
for you, I'll let you know in the next days.
Many thanks
gigi
On Thu, Jun 8, 2017 at 11:03 AM, Daniel J. Lauk djlauk@users.sf.net wrote:
Related
Tickets: #20
Hi Daniel
I put online here
https://drive.google.com/open?id=0B2L2AJOmDzkbeVhoQ1RzY1ItZk0 a zip
containing:
program that uses the enum (TestEpicsEnum) and the epicssharp server
sources (the nuget package is not updated to the last version and it
does not handle the enums).
The .Net program has a timer that updates on a textbox the value of
the enum PV. You can change the value of the PV by pressing a button
on the form, or by using the caput functionalities (I put two
textboxes to copy/paste on the commandline).
The python script ticket_20.py tries to update the value, but it
fails. This is the error I get:
Thanks a lot
Bests,
gigi
On Thu, Jun 8, 2017 at 11:03 AM, Daniel J. Lauk djlauk@users.sf.net wrote:
Related
Tickets: #20
Thanks for the example(s). I did some digging and it turns out, enums have not received sufficient attention previously.
I'll update this issue as soon as I have a solution to offer.