Experimental Physics and Industrial Control System
|
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
|
- Replies:
- RE: [External] Re: Phoebus Slider Leblanc, Gregory via Tech-talk
- References:
- Phoebus Slider Leblanc, Gregory via Tech-talk
- Navigate by Date:
- Prev:
Re: Why does libca.so depend on libreadline.so? Ralph Lange via Tech-talk
- Next:
Re: Why does libca.so depend on libreadline.so? Simon Rose 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>
2024
- Navigate by Thread:
- Prev:
Phoebus Slider Leblanc, Gregory via Tech-talk
- Next:
RE: [External] Re: Phoebus Slider Leblanc, Gregory 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>
2024
|
ANJ, 12 May 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|