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: field transform is not found
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "Tran, Phi Dung" <ptran1 at bnl.gov>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 19 Oct 2023 23:40:05 +0000

Normally you get support fort he transform record by including the EPICS “calc” module dbd and lib files in your IOC app Makefile.

 

myApp_DBD +=  calcSupport.dbd

myApp_LIBS += calc

 

Mark

 

 

 

From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Tran, Phi Dung via Tech-talk
Sent: Thursday, October 19, 2023 4:38 PM
To: tech-talk at aps.anl.gov
Subject: field transform is not found

 

Hello,

 

I am using transform in my field below, and got the message from st.cmd.

##################################

record(transform, "$(P)-TILT") {

    field(DESC, "tilt (tild Θ mrad, us & ds mtrs, ")

    field(INPB, "$(P){upstream}RADIUS.VAL NPP NMS")

    field(CLCC, "a*b/1000") # r * Θ/1000 =s

    field(CLCF, "c") # r * Θ/1000 =s

    field(OUTC, "$(INBOARDMTR).VAL PP MS ")  # Output to upstream inboard and outboard, default is CA, for clarity for different IOC

    field(OUTF, "$(OUTBOARDMTR).VAL PP MS")  # Output to upstream inboard and outboard, default is CA, for clarity for different IOC

    #field(OUTC, "$(P){MoveUpstream} PP ")  # Output to upstream inboard and outboard, default is CA, for clarity for different IOC

    #get downstream radius, Tilt in -Θ direction

    field(INPD, "$(P){downstream}RADIUS.VAL NPP MS")

    field(CLCE, "-a*d/1000") # r * (-Θ)/1000 =s

    field(OUTE, "$(DOWNSTREAMMTR).VAL PP MS")  # Output to upstream inboard and outboard, default is CA, for clarity for different IOC

}

Error output ##########################################

Can't create record "XF:19IDC-ES-GO{Tilt}Mtr-TILT" of type "transform"

Error at or before ")" in file "/epics/iocs/virtMotorsMD3/db/galil0_pitch.db" line 112

Error: syntax error

dbLoadRecords: failed to load '/epics/iocs/virtMotorsMD3/db/galil0_pitch.db'

 

Makefile configuration ##############################

in my Makefile under src directory I have these statements, 

virtMotorsMD3_DBD += devIocStats.dbd transformRecord.dbd

 

virtMotorsMD3_LIBS += motor softMotor

virtMotorsMD3_LIBS += devIocStats

virtMotorsMD3_LIBS += transforms10 userTransform userTransforms10 userTransforms10more userTransforms20

#############

Can you give me suggestions what to do next,

P. Tran

 


References:
field transform is not found Tran, Phi Dung via Tech-talk

Navigate by Date:
Prev: modbus reading arrays of floats Pearson, Matthew via Tech-talk
Next: Re: modbus reading arrays of floats Jemian, Pete R. 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: field transform is not found Tran, Phi Dung via Tech-talk
Next: modbus reading arrays of floats Pearson, Matthew 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, 19 Oct 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·