1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 <2021> 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | line scan camera with ADAravis driver skips frames |
From: | Katie Matusik via Tech-talk <tech-talk at aps.anl.gov> |
To: | tech-talk <tech-talk at aps.anl.gov> |
Date: | Tue, 6 Apr 2021 11:07:29 -0700 |
< envPaths errlogInit(20000) dbLoadDatabase("$(TOP)/dbd/ADAravisApp.dbd") ADAravisApp_registerRecordDeviceDriver(pdbbase) # Name of camera as reported by arv-tool epicsEnvSet("CAMERA_NAME", ${DET_IP}) # The maximum image width; used for row profiles in the NDPluginStats plugin epicsEnvSet("XSIZE", "12288") # The maximum image height; used for column profiles in the NDPluginStats plugin epicsEnvSet("YSIZE", "1") # Define NELEMENTS to be enough for a 12288x1x3 (color) image epicsEnvSet("NELEMENTS", "40000") # Enable register caching epicsEnvSet("ENABLE_CACHING", "1") # The database file epicsEnvSet("GENICAM_DB_FILE", "$(ADGENICAM)/GenICamApp/Db/Basler.template") < st.cmd.base
Attachment:
ADAravis_IOC.png
Description: PNG image
Attachment:
Basler-features-1.png
Description: PNG image
Attachment:
Basler-features-2.png
Description: PNG image
Attachment:
Basler-features-3.png
Description: PNG image
Attachment:
Basler-features-4.png
Description: PNG image
# Prefix for all records epicsEnvSet("PREFIX", "BASLER1:") # The port name for the detector epicsEnvSet("PORT", "BASLER") # Really large queue so we can stream to disk at full camera speed epicsEnvSet("QSIZE", "2000") # The maximum number of time series points in the NDPluginStats plugin epicsEnvSet("NCHANS", "2048") # The maximum number of frames buffered in the NDPluginCircularBuff plugin epicsEnvSet("CBUFFS", "500") # The search path for database files epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db:$(ADGENICAM)/db:$(ADARAVIS)/db") # aravisConfig(const char *portName, const char *cameraName, int enableCaching, size_t maxMemory, int priority, int stackSize) aravisConfig("$(PORT)", "$(CAMERA_NAME)", $(ENABLE_CACHING), 0, 0, 0) asynSetTraceIOMask($(PORT), 0, 2) #asynSetTraceMask($(PORT), 0, TRACE_ERROR|TRACEIO_DRIVER|TRACE_FLOW) #asynSetTraceFile($(PORT), 0, "aravisDebug.txt") # Main database dbLoadRecords("$(ADARAVIS)/db/aravisCamera.template", "P=$(PREFIX),R=cam1:,PORT=$(PORT)") # Load the autogenerated file of GenICam features dbLoadRecords("$(GENICAM_DB_FILE)", "P=$(PREFIX),R=cam1:,PORT=$(PORT)") # Create a standard arrays plugin NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, 0) # Use this line for 8-bit data only #dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int8,FTVL=CHAR,NELEMENTS=$(NELEMENTS)") # Use this line for 8-bit or 16-bit data dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int16,FTVL=SHORT,NELEMENTS=$(NELEMENTS)") # Load all other plugins using commonPlugins.cmd < $(ADCORE)/iocBoot/commonPlugins.cmd set_requestfile_path("$(ADGENICAM)/GenICamApp/Db") set_requestfile_path("$(ADARAVIS)/aravisApp/Db") iocInit() # save things every thirty seconds create_monitor_set("auto_settings.req", 30,"P=$(PREFIX)")