From b6c538b105d4081bb8f47b378441eadaec6568fd Mon Sep 17 00:00:00 2001 From: keenanlang Date: Thu, 14 Sep 2023 16:34:00 -0500 Subject: [PATCH] Multiply by number of colors) --- iocBoot/iocxxx/examples/detectors/ADSpinnaker.iocsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iocBoot/iocxxx/examples/detectors/ADSpinnaker.iocsh b/iocBoot/iocxxx/examples/detectors/ADSpinnaker.iocsh index 135afe2..9111af0 100755 --- a/iocBoot/iocxxx/examples/detectors/ADSpinnaker.iocsh +++ b/iocBoot/iocxxx/examples/detectors/ADSpinnaker.iocsh @@ -25,7 +25,7 @@ NDStdArraysConfigure("$(INSTANCE)Image", 3, 0, "$(INSTANCE)", 0, 2000000) # Need to determine certain values from input parameters iocshCmd("epicsEnvSet('__FTVL', '$($(TYPE=Int16)_VAL)')", "Int8_VAL=UCHAR, UInt8_VAL=UCHAR, Int16_VAL=SHORT, UInt16_VAL=SHORT, Int32_VAL=LONG, UInt32_VAL=LONG, Float32_VAL=DOUBLE, Float64_VAL=DOUBLE") iocshCmd("epicsEnvSet('__TYPE', '$($(TYPE=Int16)_VAL)')", "Int8_VAL=Int8, UInt8_VAL=Int8, Int16_VAL=Int16, UInt16_VAL=Int16, Int32_VAL=Int32, UInt32_VAL=Int32, Float32_VAL=Float32, Float64_VAL=Float64") -luaCmd("epicsEnvSet('__SIZE', tostring((XSIZE*YSIZE)|0))", "XSIZE=$(XSIZE), YSIZE=$(YSIZE)") +luaCmd("epicsEnvSet('__SIZE', tostring((COLORS*XSIZE*YSIZE)|0))", "COLORS=$(COLORS=1), XSIZE=$(XSIZE), YSIZE=$(YSIZE)") dbLoadRecords("$(ADCORE)/ADApp/Db/NDStdArrays.template", "P=$(PREFIX):,R=image1:,PORT=$(INSTANCE)Image,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(INSTANCE),TYPE=$(__TYPE),FTVL=$(__FTVL),NELEMENTS=$(__SIZE)")