Skip to content

Commit

Permalink
final tweaks to the start.sh for auto genicam
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Jul 3, 2024
1 parent 72291db commit a3d558d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ioc/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ elif [ -f ${ibek_src} ]; then
# Generate pvi device from the GenICam DB
pvi convert device --template /epics/support/ADGenICam/db/$instance_class.template /epics/pvi-defs/ /epics/support/ADGenICam/include/ADGenICam.h
mv /epics/pvi-defs/ADGenICam.pvi.device.yaml /epics/pvi-defs/$instance_class.pvi.device.yaml
# change the title of the pvi device to match the camera ID
sed -i "s/arvFeature/Aravis $instance_id/g" /epics/pvi-defs/ADAravis.pvi.device.yaml
sed -i "s/label: ADGenICam/label: GenICam $instance_id/g" /epics/pvi-defs/$instance_class.pvi.device.yaml
# remove ADDriver from GenICam device
sed -i "/ADDriver//d" /epics/pvi-defs/$instance_class.pvi.device.yaml
fi
# TODO: pvi changes should allow us to remove the last 3 sed lines above
# a) you will be able to specify no paretn, b) you will be able to specify the label

# get the ibek support yaml files this ioc's support modules
defs=/epics/ibek-defs/*.ibek.support.yaml
Expand Down

0 comments on commit a3d558d

Please sign in to comment.