#-
#- pluginOverlay.cmd
#-
#- Required env vars
#-	CAM			- PV Prefix for all camera related PV's
#-	N			- Plugin number, must be unique if more than one Overlay plugin
#-	PLUGIN_SRC	- Which port should this plugin get its data from

#- Configure the plugin
#- NDOverlayConfigure( portName, queueSize, blockingCallbacks, dataSrcPortName, addr, maxOverlays, maxBuffers, maxMemory, priority, stackSize, maxThreads )
#- Set maxBuffers to 0 for unlimited buffers
#- Set maxMemory  to 0 for unlimited memory allocation
NDOverlayConfigure( "Over$(N)", 16, 0, "$(PLUGIN_SRC)", 0, 8, 0, 0, 0, 0, $(MAX_THREADS=5) ))

#- Load the plugin records
dbLoadRecords( "db/pluginOverlay.db",  "CAM=$(CAM_PV),CAM_PORT=$(CAM_PORT),PLUGIN_SRC=$(PLUGIN_SRC),N=$(N)" )
