1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 <2023> 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Question about the best practice for integrating a stepper motor Python library into EPICS |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | Alexander Kessler <alexander.kessler at uni-jena.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 11 May 2023 15:10:18 +0000 |
When I said client/server I meant was Python opening the socket to the hardware, or listening for a socket connection from external software. I see it is the former.
I think that porting to C++ will be a lot easier. You only need to implement a few methods: move(), moveVelocity(), stop(), home(), poll(), etc. There are lots of example drivers to use as models. We can help you find the one that is the closest match to
your system so you have a good starting point.
The asynMotorController and asynMotorAxis base classes and the asyn device support take care of most of the details of interfacing to the motor record.
Mark
From: Alexander Kessler Sent: Thursday, May 11, 2023 9:46 AM To: Mark Rivers; tech-talk at aps.anl.gov Subject: Re: Question about the best practice for integrating a stepper motor Python library into EPICS Hello Mark,
Yes, it is a TCP Connection to HW.
''' import socket s = socket.socket()timeout = 1.0 s.settimeout(timeout) s.connect(host, port) ''' Well, it's a P2P connection, I think client-server is not the right term here. I would say Phyton Code is the master, says that to do it, and HW is the slave.No EPICS so far. I'm trying to make a device driver IOC from Python Lib. Because I am complete beginner, I want to ask for the better way to do it. I see two options:
Best regards, AlexK
Am 11.05.2023 um 14:30 schrieb Mark Rivers:
-- Alexander Kessler Helmholtz-Institut-Jena Fröbelstieg 3, 07743 Jena phone: +49-3641-947296 fax: +49-3641-947299 email: alexander.kessler at uni-jena.de web: http://www.rlp-ioq.uni-jena.de/ http://www.hi-jena.de Facility for Antiproton and Ion Research in Europe GmbH (FAIR GmbH) GSI Helmholtzzentrum für Schwerionenforschung GmbH Planckstraße 1, 64291 Darmstadt, Germany, www.fair-center.eu, www.gsi.de Commercial Register / Handelsregister: FAIR: Amtsgericht Darmstadt, HRB 89372 GSI: Amtsgericht Darmstadt, HRB 1528 Managing Directors / Geschäftsführung: Professor Dr. Paolo Giubellino, Jörg Blaurock Chairman of the GSI Supervisory Board / Vorsitzender des GSI-Aufsichtsrats: Ministerialdirigent Dr. Volkmar Dietz |