EPICS Home

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  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: sscan question
From: lynn <[email protected]>
To: [email protected]
Date: Tue, 29 Nov 2016 16:48:04 +0800 (CST)
HI all,
     I used the epics 3.14.15.2, synapps5.8 and centos 7_64.
     I have used the motor module successfully.  Now  I am trying to add the sscan module.
     I tried to do some change in my st.cmd as the sscanDoc.html  said,  but I did not get the point.

This is my st.cmd.( motor move is ok)
---------------------------------------------
# The is the ASYN example for communication to a ARIES.
# "#!" marks lines that can be uncommented.

< envPaths

dbLoadDatabase("$(TOP)/dbd/WithAsyn.dbd")
WithAsyn_registerRecordDeviceDriver(pdbbase)
dbLoadTemplate("motor.substitutions.ARIES.test")
dbLoadRecords("$(TOP)/db/motorUtil.db", "P=KTG:")

# The following commands are for a local serial line
# Configure the asyn server code for either sun or linux.
#!Sun Solaris !drvAsynSerialPortConfigure("L0","/dev/ttya" ,0,0,0)
#!Redhat Linux!drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
drvAsynIPPortConfigure("L0","192.168.1.120:12321",0,0,0)

# Kohzu ARIES motor controller setup parameters:
#     (1) maximum number of controllers in system
#     (2) motor task polling rate (min=1Hz,max=60Hz)
ARIESSetup(4, 5)

# Kohzu ARIES motor controller configuration parameters:
#     (1) controller# being configured
#     (2) ASYN port name
#     (3) address (GPIB only)
ARIESConfig(0, "L0", 0)
var drvARIESdebug 4

########## sscan set ###############
dbLoadRecords("$(SSCAN)/sscanApp/Db/standardScans.db","P=KTG:,MAXPTS1=1000,MAXPTS2=1000,MAXPTS3=1000,MAXPTS4=1000,MAXPTSH=1000")
dbLoadRecords("$(SSCAN)/sscanApp/Db/saveData.db","P=KTG:")
dbLoadRecords("$(SSCAN)/sscanApp/Db/scanProgress.db","P=KTG:")
#dbLoadTemplate("scanParms.substitutions")
##################################
iocInit
# motorUtil (allstop & alldone)
motorUtilInit("KTG:")

saveData_Init("saveData.req", "P=KTG:")
---------------------------------------------------------------------

This is the output:
[root@localhost iocWithAsyn]# ../../bin/linux-x86_64/WithAsyn st.cmd.ARIES.test
Successfully locked memory using mlockAll
# The is the ASYN example for communication to a ARIES.
# "#!" marks lines that can be uncommented.
< envPaths
epicsEnvSet("ARCH","linux-x86_64")
epicsEnvSet("IOC","iocWithAsyn")
epicsEnvSet("TOP","/opt/synApps_5_8/support/motor-6-9")
epicsEnvSet("SUPPORT","/opt/synApps_5_8/support")
epicsEnvSet("ASYN","/opt/synApps_5_8/support/asyn-4-26")
epicsEnvSet("SNCSEQ","/opt/synApps_5_8/support/seq-2-2-3")
epicsEnvSet("BUSY","/opt/synApps_5_8/support/busy-1-6-1")
epicsEnvSet("EPICS_BASE","/opt/base")
epicsEnvSet("IPAC","/opt/synApps_5_8/support/ipac-2-13")
epicsEnvSet("SSCAN","/opt/synApps_5_8/support/sscan-2-10-1")
epicsEnvSet("AUTOSAVE","/opt/synApps_5_8/support/autosave-5-6-1")
epicsEnvSet("STREAM","/opt/synApps_5_8/support/stream-2-6a")
dbLoadDatabase("/opt/synApps_5_8/support/motor-6-9/dbd/WithAsyn.dbd")
WithAsyn_registerRecordDeviceDriver(pdbbase)
dbLoadTemplate("motor.substitutions.ARIES.test")
dbLoadRecords("/opt/synApps_5_8/support/motor-6-9/db/motorUtil.db", "P=KTG:")
# The following commands are for a local serial line
# Configure the asyn server code for either sun or linux.
#!Sun Solaris !drvAsynSerialPortConfigure("L0","/dev/ttya" ,0,0,0)
#!Redhat Linux!drvAsynSerialPortConfigure("L0","/dev/ttyS0",0,0,0)
#drvAsynSerialPortConfigure("L0","/dev/ttyUSB0" ,0,0,0)
#asynSetOption("L0", -1, "baud", "38400")
#asynSetOption("L0", -1, "bits", "8")
#asynSetOption("L0", -1, "parity", "none")
#asynSetOption("L0", -1, "stop", "1")
#asynSetOption("L0", -1, "clocal", "Y")
#asynSetOption("L0", -1, "crtscts", "N")
drvAsynIPPortConfigure("L0","192.168.1.120:12321",0,0,0)
# Kohzu ARIES motor controller setup parameters:
#     (1) maximum number of controllers in system
#     (2) motor task polling rate (min=1Hz,max=60Hz)
ARIESSetup(4, 5)
# Kohzu ARIES motor controller configuration parameters:
#     (1) controller# being configured
#     (2) ASYN port name
#     (3) address (GPIB only)
ARIESConfig(0, "L0", 0)
var drvARIESdebug 4
########## sscan set ###############
dbLoadRecords("/opt/synApps_5_8/support/sscan-2-10-1/sscanApp/Db/standardScans.db","P=KTG:,MAXPTS1=1000,MAXPTS2=1000,MAXPTS3=1000,MAXPTS4=1000,MAXPTSH=1000")
Record "KTG:scan1" is of unknown type "sscan"
Error at or before ")" in file "/opt/synApps_5_8/support/sscan-2-10-1/sscanApp/Db/standardScans.db" line 126
Error: syntax error
dbLoadRecords("/opt/synApps_5_8/support/sscan-2-10-1/sscanApp/Db/saveData.db","P=KTG:")
dbLoadRecords("/opt/synApps_5_8/support/sscan-2-10-1/sscanApp/Db/scanProgress.db","P=KTG:")
#dbLoadTemplate("scanParms.substitutions")
##################################
asynSetTraceIOMask("L0",-1,0x9)
iocInit
Starting iocInit
############################################################################
## EPICS R3.15.2 $Date: Thu 2015-05-14 14:09:28 +0200$
## EPICS Base built Oct 16 2016
############################################################################
iocRun: All initialization complete
# motorUtil (allstop & alldone)
motorUtilInit("KTG:")
saveData_Init("saveData.req", "P=KTG:")
st.cmd.ARIES.test line 52: Command saveData_Init not found.
epics>


Regards,
lynn




Replies:
RE: sscan question Mark Rivers

Navigate by Date:
Prev: MEDEM sexagesimal number format Luca Cavalli
Next: Re: SNL sequencer apparently losing connection to underlying network Kevin Meyer
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: MEDEM sexagesimal number format Luca Cavalli
Next: RE: sscan question Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024