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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: RE: [External] Re: Phoebus Slider
From: "Leblanc, Gregory via Tech-talk" <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 12 May 2023 16:04:51 +0000

Per Kay’s suggestion I tried using channel access, and that worked.  I think my problem is that I was using PVA:// and not pva://  Apparently those are case sensitive.

 

Thanks for all the help,

     Greg

 

From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Friday, May 12, 2023 9:42 AM
To: tech-talk at aps.anl.gov; Leblanc, Gregory <leblanc at ohio.edu>
Subject: [External] Re: Phoebus Slider

 

Use caution with links and attachments.

Hi Greg,

 

One step in debugging would be to see if that record is processing.  You can set the TPRO (Trace PROcessing) field of that record to 1.  Then you will see a message each time the record processes.

 

Other things to try:

  • Set ASYN_TRACEIO_MASK on the underlying port to ESCAPE
  • Set the ASYN_TRACE_MASK on the underlying port to DRIVER|ERROR

You will then see messages for the actual communication to the device.

 

Try using caput to write to the record.  Then try pvput.

 

Mark

 

 


From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Leblanc, Gregory via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, May 11, 2023 4:42 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Phoebus Slider

 

Hi folks,

I've finally gotten EPICS chatting reasonably with my Keysight 34980A mainframes, both to read data through one of the MUX cards, and now to output voltages through the DAC.  My next step is to start building some interfaces.  Reading in and graphing some data trends went quite well using the examples and modifying them to use PVA://myPVname.  I'm having more trouble getting output sent out to my PVs.

I started with the "Incremental Controls"/spinner slider scrollbar and looked at modifying the scaled slider horizontal widget.  I modified it to use PVA://KS_34980A_EPICStestwriteOutput1 and adjusted the values to go from 0 to 16 in 0.1 increments, and turned off the hi/lo labels.  However, when I try to drag the slider, it pops back to 0 immediately when I release the mouse button.    Using the keyboard makes the slider move but doesn't change the PV. 

I can write to that PV using 'pvput KS_34980A_EPICStestwriteOutput1 #' and see that it does indeed update, so I think I must be doing something wrong in Phoebus.  I've attached my slider.bob file.  The record that I'm writing to looks like:

record(ao, "$(P)$(R)writeOutput1") {
    field(DESC, "Write to Test Output 1")
    field(DTYP, "stream")
    field(PREC, "3")
    field(EGU,  "Volts")
    field(SCAN, "Passive")
    field(OUT, "@devKS_34980A_EPICS.proto setSourceVoltage(%E,2001) $(PORT) $(A)" )
    field(PINI, "YES")
    field(VAL, "0")
    field(FLNK, "$(P)$(R)readOutput1")
}


Any pointers are greatly appreciated,
     Greg

--
Gregory Leblanc
Accelerator Engineer
Edwards Accelerator Lab - Ohio University
123 University Terrace
Athens, OH 45701 USA
leblanc at ohio.edu
M: (401) 52-OUAL1 or (401) 526-8251


References:
Phoebus Slider Leblanc, Gregory via Tech-talk
Re: Phoebus Slider Mark Rivers via Tech-talk

Navigate by Date:
Prev: Re: Why does libca.so depend on libreadline.so? Mark Rivers via Tech-talk
Next: When I use an IOC in a container, streamDevice occasionally reports that protocol has been aborted, which causes the records in the IOC to become inaccessible from the host computer. Wang, Andrew 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  <20232024 
Navigate by Thread:
Prev: Re: Phoebus Slider Mark Rivers via Tech-talk
Next: When I use an IOC in a container, streamDevice occasionally reports that protocol has been aborted, which causes the records in the IOC to become inaccessible from the host computer. Wang, Andrew 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  <20232024 
ANJ, 12 May 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·