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: Phoebus Slider |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Leblanc, Gregory" <leblanc at ohio.edu> |
Date: | Fri, 12 May 2023 13:42:18 +0000 |
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:
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 |