I have just been dealing with EPICS and its applications since a few weeks. I've done basic things such as creating IOC, making MEDM display,communicating Octave and etc..And I've got help most of the time in this tech-talk.
I am now dealing with communication a device that is supported by EPICS. I have got a Digitizier which is manufactured by CAEN. But before I deal with that device, I want to figure out the database configuration in an application. Therefore,
I research on the Internet and in this website. I found a quite basic example which is :
#!/opt/epics/helloWorldIOC/bin/linux-x86_64/helloWorldIOC
## You may have to change helloWorldIOC to something else
## everywhere it appears in this file
epicsEnvSet(STREAM_PROTOCOL_PATH,"helloWorldIOCApp/Db")
## Register all support components
dbLoadDatabase("../../dbd/helloWorldIOC.dbd",0,0)
helloWorldIOC_registerRecordDeviceDriver(pdbbase)
drvAsynSerialPortConfigure("SERIALPORT","/dev/ttyACM0",0,0,0)
asynSetOption("SERIALPORT",-1,"baud","115200")
asynSetOption("SERIALPORT",-1,"bits","8")
asynSetOption("SERIALPORT",-1,"parity","none")
asynSetOption("SERIALPORT",-1,"stop","1")
asynSetOption("SERIALPORT",-1,"clocal","Y")
asynSetOption("SERIALPORT",-1,"crtscts","N")
dbLoadRecords("db/arduino.db","PORT='SERIALPORT'")
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file db/arduino.db
dbLoadRecords("/opt/epics/helloWorld/db/helloWorldIOC.db","user=hulusi")
filename="../dbLexRoutines.c" line number=240
No such file or directory dbRead opening file
/opt/epics/helloWorld/db/helloWorldIOC.db
############################################################################
## EPICS R3.14.12.4 $Date: Mon 2013-12-16 15:51:45 -0600$
## EPICS Base built Jul 21 2016
############################################################################
iocRun: All initialization complete
## Start any sequence programs
#seq snchelloWorldIOC,"user=hulusi"