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