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: Compiling IOC with sequencer from scratch. seq command not found.
From: "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 20 Jan 2023 19:50:06 +0000
Hello all, good evening.

Im sorry if the doubt is trivial, but i cant find what the problem is.
Since makeBaseApp.pl -t example ioc generates several things that i dont need in my application, im trying to compile a sequencer stateMachine from scratch, with makeBaseApp -t ioc. Following the documentation (https://www-csr.bessy.de/control/SoftDist/sequencer/Installation.html#configure-and-build) i did:

> makeBaseApp.pl -t ioc SoftKin
> makeBaseApp.pl -i -t ioc SoftKin

Added the path to my sequencer installation as SNCSEQ in configure/RELEASE file. Added an example state machine file called Kinematics.stt in SoftKinApp/src/ folder and in the Makefile:

SoftKin_SRCS += Kinematics.stt
SoftKin_LIBS += seq pv

I compiled it and it went OK. Kinematics.stt was clearly transformed into a cpp code and then compiled.

However, when starting the IOC, at the end of my cmd file i get:

seq Kinematics,"BLP=SOL:,HP=S:,MP=m1"
st.cmd line 22: Command seq not found.

Am i forgetting something in the Makefiles? I tried using the examples of makeBaseApp.pl to understand what is missing but i think im getting lost in application name conversions. I append cmd file, configure/RELEASE and SoftKin/src/Makefil at the end of this e-mail.

Thanks for any suggestions,

Marco

###############CONFIGURE/RELEASE:

EPICS_BASE = /usr/local/epics-nfs/base/R7.0.7
SNCSEQ = /usr/local/epics-nfs/modules/R7.0.7/synApps_6_2/synApps/support/seq-2-2-9/

# Set RULES here if you want to use build rules from somewhere
# other than EPICS_BASE:
#RULES = $(MODULES)/build-rules

# These lines allow developers to override these RELEASE settings
# without having to modify this file directly.
-include $(TOP)/../RELEASE.local
-include $(TOP)/../RELEASE.$(EPICS_HOST_ARCH).local
-include $(TOP)/configure/RELEASE.local

################SOFTKINAPP/SRC/MAKEFILE:
TOP=../..

include $(TOP)/configure/CONFIG
#----------------------------------------
#  ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================

#=============================
# Build the IOC application

PROD_IOC = SoftKin
# SoftKin.dbd will be created and installed
DBD += SoftKin.dbd

# SoftKin.dbd will be made up from these files:
SoftKin_DBD += base.dbd

# Include dbd files from all support applications:
#SoftKin_DBD += xxx.dbd

# Add all the support libraries needed by this IOC
#SoftKin_LIBS += xxx

# SoftKin_registerRecordDeviceDriver.cpp derives from SoftKin.dbd
SoftKin_SRCS += SoftKin_registerRecordDeviceDriver.cpp
####SoftKin_SRCS += Kinematics.stt

# Build the main IOC entry point on workstation OSs.
SoftKin_SRCS_DEFAULT += SoftKinMain.cpp
SoftKin_SRCS_vxWorks += -nil-

# Add support from base/src/vxWorks if needed
#SoftKin_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary

#####ADD Sequencer
#SoftKin_DBD +=
#SoftKinSupport_LIBS += seq pv
SoftKin_SRCS += Kinematics.stt
SoftKin_LIBS += seq pv

# Finally link to the EPICS Base libraries
SoftKin_LIBS += $(EPICS_BASE_IOC_LIBS)
#SoftKin_LIBS += seq pv

#===========================

include $(TOP)/configure/RULES
#----------------------------------------
#  ADD RULES AFTER THIS LINE

############ CMD FILE:

#!../../bin/linux-x86_64/SoftKin

#- You may have to change SoftKin to something else
#- everywhere it appears in this file

< envPaths

cd "${TOP}"

## Register all support components
dbLoadDatabase "dbd/SoftKin.dbd"
SoftKin_registerRecordDeviceDriver pdbbase

## Load record instances
#dbLoadRecords("db/SoftKin.db","user=marco")
dbLoadTemplate("${TOP}/SoftKinApp/Db/Kinematics.substitutions")

cd "${TOP}/iocBoot/${IOC}"
iocInit

## Start any sequence programs
seq Kinematics,"BLP=SOL:,HP=S:,MP=m1"

Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.


Replies:
RE: Compiling IOC with sequencer from scratch. seq command not found. Mark Rivers via Tech-talk

Navigate by Date:
Prev: Trusted-CI Webinar on EPICS/RTEMS Cybersecurity Gedare Bloom via Tech-talk
Next: RE: Compiling IOC with sequencer from scratch. seq command not found. Mark Rivers 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: Trusted-CI Webinar on EPICS/RTEMS Cybersecurity Gedare Bloom via Tech-talk
Next: RE: Compiling IOC with sequencer from scratch. seq command not found. Mark Rivers 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, 25 Jan 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·