Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pvi changes to convert device command #43

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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