Skip to content

Commit

Permalink
Add pvi changes to convert device command
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Jul 16, 2024
1 parent 68c1431 commit 16a7279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions ioc/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,8 @@ elif [ -f ${ibek_src} ]; then
python /epics/support/ADGenICam/scripts/makeDb.py /tmp/${instance_id}-genicam.xml /epics/support/ADGenICam/db/${instance_class}.template
fi
# 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/label: ADGenICam/label: GenICam $instance_id/g" /epics/pvi-defs/$instance_class.pvi.device.yaml
# remove ADDriver from GenICam device
sed -i "s/ADDriver//" /epics/pvi-defs/$instance_class.pvi.device.yaml
# TODO: pvi changes should allow us to remove the last 2 sed lines above
# a) you will be able to specify no parent, b) you will be able to specify the label
template=/epics/support/ADGenICam/db/$instance_class.template
pvi convert device --template $template --name $instance_class --label "GenICam $instance_id" /epics/pvi-defs/
fi
done

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ibek==3.0.1
# to install direct from github during development in a branch
# ibek@git+https://github.com/epics-containers/ibek.git@branch
pvi@git+https://github.com/epics-containers/pvi.git@convert-template # For testing only

0 comments on commit 16a7279

Please sign in to comment.