Skip to content

Commit c3bf055

Browse files
authored
Merge pull request #122 from jwlodek/modifications-new-adphantom
Modifications to support newer version of ADPhantom driver
2 parents 6cabeea + c59de2f commit c3bf055

File tree

6 files changed

+26
-18
lines changed

6 files changed

+26
-18
lines changed

roles/deploy_ioc/vars/adphantom.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22

33
deploy_ioc_use_common: true
44
deploy_ioc_use_ad_common: true
5-
deploy_ioc_required_module: adphantom_fdff818
6-
deploy_ioc_executable: 'miroApp'
5+
deploy_ioc_required_module: adphantom_329598e
6+
deploy_ioc_template_root_path:
7+
"{{ deploy_ioc_required_module_path }}/iocs/phantomIOC"

roles/device_roles/adphantom/example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ ADPhantom:
55
environment:
66
PREFIX: "XF:31ID1-ES{VEO:Cam-1}"
77
ENGINEER: "K. Barry"
8+
MAC_ADDR: "1423f21fdeb0"
9+
INTF: "eno5"
810
CAMERA_IP: "100.100.214.107"
911
NUM_CINES: 16

roles/device_roles/adphantom/schema.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ environment:
55
PREFIX: str()
66
CAMERA_IP: str()
77
NUM_CINES: int()
8+
MAC_ADDR: str()
9+
INTF: str()
Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
dbLoadDatabase("{{ _ioc_template_root_path }}/dbd/miroApp.dbd")
2-
miroApp_registerRecordDeviceDriver(pdbbase)
1+
dbLoadDatabase("{{ deploy_ioc_template_root_path }}/dbd/{{ deploy_ioc_executable }}.dbd")
2+
{{ deploy_ioc_executable }}_registerRecordDeviceDriver(pdbbase)
3+
4+
set_requestfile_path("$(ADCORE)/db:$(ADPHANTOM)/db")
35

46
# Configure control and data TCP/IP socket connections. Default ports should be 7115 and 7116 respectively.
57
drvAsynIPPortConfigure("CTRL", "$(CAMERA_IP):$(CTRL_PORT)", 100, 0, 0)
68
drvAsynIPPortConfigure("DATA", "$(CAMERA_IP):$(DATA_PORT)", 100, 0, 0)
79

810
# Configure the camera
9-
miroCameraConfig("$(PORT)", "CTRL", "DATA", 0, 0, 0, 0)
11+
ADPhantomConfig("$(PORT)", "CTRL", "DATA", "$(MAC_ADDR)", "$(INTF)", 0, 0, 0, 0)
1012

1113
# Enable debugging for certain functions
12-
#miroCameraDebug("$(PORT)", "readoutDataStream", 1);
14+
#ADPhantomDebug("$(PORT)", "readoutDataStream", 1);
1315

1416
asynSetTraceIOMask($(PORT), 0, 2)
1517
#asynSetTraceMask($(PORT), 0, 0xff)
1618

1719
# Load base camera records
18-
dbLoadRecords("$(ADPHANTOM)/db/miroCamera.template", "P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
20+
dbLoadRecords("$(ADPHANTOM)/db/phantomCamera.template", "P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
1921

2022
{% for i in range(0, ioc.environment.NUM_CINES)%}
21-
dbLoadRecords("$(ADPHANTOM)/db/miroCine.template", "P=$(PREFIX),R=cam1:, CINE={{ i + 1 }}, PORT=$(PORT),ADDR=0,TIMEOUT=1")
23+
dbLoadRecords("$(ADPHANTOM)/db/phantomCine.template", "P=$(PREFIX),R=cam1:, CINE={{ i + 1 }}, PORT=$(PORT),ADDR=0,TIMEOUT=1")
2224
{% endfor %}
2325

2426
#
@@ -27,6 +29,3 @@ dbLoadRecords("$(ADPHANTOM)/db/miroCine.template", "P=$(PREFIX),R=cam1:, CINE={{
2729
# int priority, int stackSize, int maxThreads)
2830
NDStdArraysConfigure("Image1", 3, 0, "$(PORT)", 0)
2931
dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,NDARRAY_PORT=$(PORT),TIMEOUT=1,TYPE=Int16,FTVL=SHORT,NELEMENTS=6000000")
30-
31-
32-
set_requestfile_path("$(ADPHANTOM)/db")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
adphantom_329598e:
3+
name: ADPhantom
4+
executable: phantomApp
5+
version: 329598e
6+
url: https://github.com/jwlodek/ADPhantom
7+
include_base_ad_config: true
8+
module_deps:
9+
- adcore_60080dc
10+
pkg_deps:
11+
- libpcap-devel

roles/install_module/vars/adphantom_fdff818.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)