Commit a5d9562a authored by npereir's avatar npereir
Browse files

changed macro substitutions

parent c738bd18
......@@ -11,16 +11,18 @@ cd "${TOP}"
dbLoadDatabase "dbd/pgs.dbd"
pgs_registerRecordDeviceDriver pdbbase
## test for docker-compose
#epicsEnvSet("IOCBL", "PINK")
#epicsEnvSet("IOCDEV", "PG01")
#epicsEnvSet("BPM", "BPM1")
#epicsEnvSet("CAMERA_ID", "16435513")
# Prefix for all records
#epicsEnvSet("BL", "PINK")
#epicsEnvSet("DEV", "PG01")
#epicsEnvSet("IMAGE","image1")
epicsEnvSet("BL", "$(IOCBL)")
epicsEnvSet("DEV", "$(IOCDEV)")
epicsEnvSet("PREFIX","$(BL):$(DEV):")
#epicsEnvSet("BPM","BPM1")
epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", 10000000)
#epicsEnvSet("EPICS_CAS_INTF_ADDR_LIST", "172.17.10.48")
# Use this line for a specific camera by serial number, in this case a BlackFly GigE camera
## Camera PG01
......@@ -50,13 +52,13 @@ epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db")
epicsEnvSet("NELEMENTS", "1241632")
# pointGreyConfig(const char *portName, int cameraId, int traceMask, int memoryChannel, int maxBuffers, size_t maxMemory, int priority, int stackSize)
pointGreyConfig("$(PORT)", $(CAMERA_ID), 0x1, 0)
#pointGreyConfig("$(PORT)", $(CAMERA_ID), 0x1, 0)
## test
#drvAsynIPPortConfigure("$(PORT)", "127.0.0.1:50123", 0, 0, 0)
drvAsynIPPortConfigure("$(PORT)", "127.0.0.1:50123", 0, 0, 0)
dbLoadRecords("$(ADPOINTGREY)/db/pointGrey.template", "P=$(BL):,R=$(DEV):,PORT=$(PORT),ADDR=0,TIMEOUT=1")
dbLoadTemplate("${TOP}/iocBoot/${IOC}/pg01.substitutions")
dbLoadTemplate("${TOP}/iocBoot/${IOC}/pgs.substitutions", "P=$(BL):,R=$(DEV):,PORT=$(PORT)" )
# Create a standard arrays plugin
NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, 0)
......
# Note. These substutitions are mostly generic.
# However the PINI, PINI_VALB, and PINI_ABS fields should be changed to only be
# YES for the features the camera actually supports in device or absolute
# mode, otherwise error messages will appear on startup.
# One would normally set either PINI or PINI_ABS to YES (but not both) because
# if they are both YES the results are unpredictable, depending
# on which happens last.
# PINI_VALB should only be set to YES for the WhiteBalance property in color cameras
# that support WhiteBalance.
file "$(ADPOINTGREY)/db/pointGreyProperty.template"
{
pattern
{ PROPERTY, N, PINI, PINI_VALB, PINI_ABS, PHAS}
{ Brightness, 0, NO, NO, YES, 1}
{ AutoExposure, 1, NO, NO, YES, 1}
{ Sharpness, 2, NO, NO, YES, 1}
{ WhiteBalance, 3, YES, YES, NO, 1}
{ Hue, 4, NO, NO, YES, 1}
{ Saturation, 5, NO, NO, YES, 1}
{ Gamma, 6, NO, NO, YES, 1}
{ Iris, 7, YES, NO, NO, 1}
{ Focus, 8, YES, NO, NO, 1}
{ Zoom, 9, YES, NO, NO, 1}
{ Pan, 10, YES, NO, NO, 1}
{ Tilt, 11, YES, NO, NO, 1}
# Don't set PINI on Shutter property, it is set from AcquireTime record
{ Shutter, 12, NO, NO, NO, 1}
# Don't set PINI on Gain property, it is set from Gain record
{ Gain, 13, NO, NO, NO, 1}
{ TriggerMode, 14, NO, NO, NO, 1}
{ TriggerDelay, 15, NO, NO, YES, 1}
{ FrameRate, 16, NO, NO, YES, 1}
{ Temperature, 17, NO, NO, NO, 1}
}
file "$(ADPOINTGREY)/db/pointGreyGigEProperty.template"
{
pattern
{ PROPERTY, N, PINI}
{ Heartbeat, 0, NO}
{ HeartbeatTimeout, 1, NO}
{ PacketSize, 2, YES}
{ PacketDelay, 3, YES}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment