EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20242025  2026  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  <20242025  2026 
<== Date ==> <== Thread ==>

Subject: RE: How to remove stdout from caput command
From: Mark Rivers via Tech-talk <[email protected]>
To: Mark Rivers <[email protected]>, LE-DANIEL Erwann <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 7 Feb 2024 16:53:52 +0000

Hi Erwann,

 

To use pyepics:

 

At OS shell:

pip install pyepics

 

In your Python code:

    from epics import caput

    caput(“CODES/TL1_MANIP1/ER_DCH_PosRqst__0 " + str(a) , wait=False)

 

Mark

 

 

From: Tech-talk <[email protected]> On Behalf Of Mark Rivers via Tech-talk
Sent: Wednesday, February 7, 2024 9:35 AM
To: LE-DANIEL Erwann <[email protected]>
Cc: [email protected]
Subject: Re: How to remove stdout from caput command

 

Hi Erwann,

 

Why not use PyEpics to do the caput equivalent, rather than a system call?

 

Mark

 

Sent from my iPhone



On Feb 7, 2024, at 9:31 AM, LE-DANIEL Erwann via Tech-talk <[email protected]> wrote:



Hello,

 

I use python code to write variable values. Running the code, I observe all stdout, but is it possible to disable them ?

 

Code Example :

 

---------------------------------------------------------------------------------------------------------------------

if (gap > 0 and sleep > 0) :

    for i in range (int(step)):

        os.system("caput CODES/TL1_MANIP1/ER_DCH_PosRqst__0 " + str(a) + "wait=False")

        a = a + c

        time.sleep(sleep)

---------------------------------------------------------------------------------------------------------------------

 

The code returns :

 

---------------------------------------------------------------------------------------------------------------------

Old_value …….

New_value ……

Etc…

---------------------------------------------------------------------------------------------------------------------

 

It is that “Old_value” and “New_value” that I want disabled.

 

Many Thanks.

 

 

 

Erwann LE DANIEL
Trainlab Engineer (TLE)

Alstom
Avenue du Commandant Lysiack – 17440 Aytr‚ – France
Mobile: 762086692
Email: [email protected]
www.alstom.com

 

 

 

 

 

 

 

 

 

 


CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.


References:
How to remove stdout from caput command LE-DANIEL Erwann via Tech-talk
Re: How to remove stdout from caput command Mark Rivers via Tech-talk

Navigate by Date:
Prev: AW: motor model 3 with binary commands PiCo 33 piezo CN30 controller Sintschuk, Michael via Tech-talk
Next: IOC for Agilent VS Series Helium Mass Spectrometer Leak Detectors Augusto Horita via Tech-talk
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  <20242025  2026 
Navigate by Thread:
Prev: Re: How to remove stdout from caput command Mark Rivers via Tech-talk
Next: IOC for Agilent VS Series Helium Mass Spectrometer Leak Detectors Augusto Horita via Tech-talk
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  <20242025  2026 
ANJ, 19 Mar 2026 · Home · News · About · Talk · Base · Modules · Extensions ·
· Distributions · Download · Documents · Links · Licensing ·