Test EPICS Base

3 Testing the EPICS base (optional)
3.1 Create an example IOC.
This step creates a sample IOC to test the EPICS base and useful utilities in steps 3.2 and 3.3.
3.1.1 Create Example IOC

epics@workstation:~/epics$ ls

base-7.0.3 base-7.0.3.tar.gz

epics@workstation:~/epics$ echo $EPICS_HOST_ARCH

linux-x86_64

If not displayed, repeat step 2.2.


epics@workstation:~/epics$ mkdir test

epics@workstation:~/epics$ cd test

epics@workstation:~/epics/test$ ../base-7.0.3/bin/linux-x86_64/makeBaseApp.pl -t example myexample

epics@workstation:~/epics/test$ ../base-7.0.3/bin/linux-x86_64/makeBaseApp.pl -i -t example myexample

Using target architecture linux-x86_64 (only one available)

The following applications are available:

myexample

What application should the IOC(s) boot?

The default uses the IOC's name, even if not listed above.

Application name?

epics@workstation:~/epics/test$ ls

configure iocBoot Makefile myexampleApp

epics@workstation:~/epics/test$ sudo make
epics@workstation:~/epics/test$ ls

bin configure db dbd include iocBoot lib Makefile myexampleApp

3.1.2 Run example IOC

epics@workstation:~/epics/test$ cd iocBoot/iocmyexample/

epics@workstation:~/epics/test/iocBoot/iocmyexample$ ../../bin/linux-x86_64/myexample st.cmd
#!../../bin/linux-x86_64/myexample
< envPaths
epicsEnvSet("IOC","iocmyexample")
epicsEnvSet("TOP","/home/epics/epics/test")
epicsEnvSet("EPICS_BASE","/home/epics/epics/test/../base-7.0.3")
cd "/home/epics/epics/test"
## Register all support components
dbLoadDatabase "dbd/myexample.dbd"
myexample_registerRecordDeviceDriver pdbbase
## Load record instances
dbLoadTemplate "db/user.substitutions"
dbLoadRecords "db/myexampleVersion.db", "user=epics"
dbLoadRecords "db/dbSubExample.db", "user=epics"
#var mySubDebug 1
#traceIocInit
cd "/home/epics/epics/test/iocBoot/iocmyexample"
iocInit
Starting iocInit
############################################################################
## EPICS R7.0.3
## EPICS Base built Jun 25 2019
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq sncExample, "user=epics"
epics>

3.1.3 Send dbl to the IOC

epics> dbl
epics:circle:step
epics:circle:period
epics:subExample
epics:compressExample
epics:aSubExample
epics:circle:tick
epics:myexample:version
epics:line:b
epics:aiExample
epics:aiExample1
epics:ai1
epics:aiExample2
epics:ai2
epics:aiExample3
epics:ai3
epics:xxxExample
epics:circle:angle
epics:line:a
epics:circle:x
epics:circle:y
epics:calcExample
epics:calcExample1
epics:calc1
epics:calcExample2
epics:calc2
epics:calcExample3
epics:calc3
Page last modified on September 25, 2019, at 01:47 PM
Powered by PmWiki