This module is a thin wrapper to the aravis library for industrial gigabit ethernet cameras which provide a Genicam interface, and an epics driver is provided for any parameter exposed in a category of its genicam XML file. A python script is included for creating databases and edm screens from the XML file too.
Tested working cameras:
Tested mostly working cameras:
The documentation here is top level documentation on creating an IOC with an aravisCamera areaDetector driver:
If you need to add another type of similar camera, read the "Adding a new camera" section
As this module is just a wrapper to aravis, it is not distributed with aravis, so you need to download and compile aravis in order to use the module. After downloading and untarring aravisGigE, either:
install.sh in the root of the module, orYou are now ready to build the module.
bin/linux-x86/arv-tool-0.2 -n "<device_name>" genicam > "<camera_model>.xml" to download the genicam xml data from the selected device cameras
bin/linux-x86/arv-tool-0.2 -n "Allied Vision Technologies-50-0503318719" genicam > AVT_Manta_G125B.xmlaravisGigEApp/src/makeDbAndEdl.py <genicam_xml> <camera_name>
aravisGigEApp/src/makeDbAndEdl.py AVT_Manta_G125B.xml AVT_MantaaravisGigEApp/Db/<camera_name>.templatearavisGigEApp/opi/edl/<camera_name>.edlaravisGigEApp/opi/edl/<camera_name>-features.edlpthread_attr_setstacksize error Invalid argument error messages are caused by glib and can be ignoredIOCs built using these build instructions are available in iocs/
Build Instructions for example
ASYN=/dls_sw/prod/R3.14.12.3/support/asyn/4-21
BUSY=/dls_sw/prod/R3.14.12.3/support/busy/1-4dls1
AREADETECTOR=/dls_sw/prod/R3.14.12.3/support/areaDetector/1-9dls4
ARAVISGIGE=/scratch/ad/aravisGigE
example_DBD += base.dbd
example_DBD += asyn.dbd
example_DBD += busySupport.dbd
example_DBD += ADSupport.dbd
example_DBD += NDPluginSupport.dbd
example_DBD += aravisCameraSupport.dbd
example_LIBS += aravisCamera
example_LIBS += NDPlugin
example_LIBS += ADBase
example_LIBS += netCDF
example_LIBS += cbfad
example_LIBS += NeXus
example_LIBS += hdf5
example_LIBS += sz
example_LIBS += PvAPI
example_LIBS += GraphicsMagick++
example_LIBS += GraphicsMagickWand
example_LIBS += GraphicsMagick
example_LIBS += busy
example_LIBS += asyn
example_SYS_LIBS += tiff
example_SYS_LIBS += jpeg
example_SYS_LIBS += z
example_SYS_LIBS += gomp
example_SYS_LIBS += X11
example_SYS_LIBS += xml2
example_SYS_LIBS += png12
example_SYS_LIBS += bz2
example_SYS_LIBS += Xext
example_SYS_LIBS += freetype
# Macros:
# P Device Prefix
# R Device Suffix
# PORT Asyn Port name
# TIMEOUT Timeout
# ADDR Asyn Port address
file $(AREADETECTOR)/db/ADBase.template
{
pattern { P, R, PORT, TIMEOUT, ADDR }
{ "ARAVISCAM1", ":CAM:", "CAM1", "1", "0" }
}
# Macros:
# P Device Prefix
# R Device Suffix
# PORT Asyn Port name
# TIMEOUT Timeout
# ADDR Asyn Port address
file $(ARAVISGIGE)/db/aravisCamera.template
{
pattern { P, R, PORT, TIMEOUT, ADDR }
{ "ARAVISCAM1", ":CAM:", "CAM1", "1", "0" }
}
# Macros:
# P Device Prefix
# R Device Suffix
# PORT Asyn Port name
# TIMEOUT Timeout
# ADDR Asyn Port address
file $(ARAVISGIGE)/db/AVT_Manta_1_44_4.template
{
pattern { P, R, PORT, TIMEOUT, ADDR }
{ "ARAVISCAM1", ":CAM:", "CAM1", "1", "0" }
}
# Macros:
# P Device Prefix
# R Device Suffix
# PORT Asyn Port name
# TIMEOUT Timeout
# ADDR Asyn Port address
# NDARRAY_PORT Input Array Port
# NDARRAY_ADDR Input Array Address
# Enabled Plugin Enabled at startup?
file $(AREADETECTOR)/db/NDPluginBase.template
{
pattern { P, R, PORT, TIMEOUT, ADDR, NDARRAY_PORT, NDARRAY_ADDR, Enabled }
{ "ARAVISCAM1", ":ARR:", "ARR1", "1", "0", "CAM1", "0", "1" }
}
# Macros:
# P Device Prefix
# R Device Suffix
# PORT Asyn Port name
# TIMEOUT Timeout
# ADDR Asyn Port address
# TYPE Asyn Type e.g. Int32
# FTVL Format, e.g. Int
# NELEMENTS Number of elements
file $(AREADETECTOR)/db/NDStdArrays.template
{
pattern { P, R, PORT, TIMEOUT, ADDR, TYPE, FTVL, NELEMENTS }
{ "ARAVISCAM1", ":ARR:", "ARR1", "1", "0", "Int8", "UCHAR", "1442820" }
}
# Loading libraries
# -----------------
# Device initialisation
# ---------------------
cd "$(TOP)"
dbLoadDatabase "dbd/example.dbd"
example_registerRecordDeviceDriver(pdbbase)
# aravisCameraConfig(portName, cameraName, maxBuffers, maxMemory)
aravisCameraConfig("CAM1", "Allied Vision Technologies-50-0503332222", 50, -1)
# NDStdArraysConfigure(portName, queueSize, blockingCallbacks, NDArrayPort, NDArrayAddr, maxMemory)
NDStdArraysConfigure("ARR1", 2, 0, "CAM1", 0, 0)
Used at Diamond:
SUPPORT=/dls_sw/prod/R3.14.12.3/support WORK=/dls_sw/work/R3.14.12.3/support EPICS_BASE=/dls_sw/epics/R3.14.12.3/base GLIBPREFIX=/dls_sw/prod/tools/RHEL6-x86_64/glib/2-26-1/prefix # ASYN is needed for base classes ASYN=$(SUPPORT)/asyn/4-22 # ADCORE is areaDetector ADCORE=$(WORK)/ADCore