Skip to content
Open
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions roles/deploy_ioc/vars/keithley428.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# Variables for the keithley428 role
deploy_ioc_template_root_path: "{{ deploy_ioc_required_module_path }}"
deploy_ioc_required_module: keithley428_0000000
deploy_ioc_device_specific_env: {}
3 changes: 3 additions & 0 deletions roles/device_roles/keithley428/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Keithley428 Role

This role deploys an IOC for the Keithley 428 current amplifier.
8 changes: 8 additions & 0 deletions roles/device_roles/keithley428/example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---

keithley428-01:
type: keithley428

environment:
PREFIX: "XF:31ID1-ES{KEITHLEY428:Dev-1}"
ENGINEER: "C. Engineer"
7 changes: 7 additions & 0 deletions roles/device_roles/keithley428/schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---

type: enum("keithley428")

environment:
PREFIX: str()
ENGINEER: str()
9 changes: 9 additions & 0 deletions roles/device_roles/keithley428/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---

- name: Install base startup script
ansible.builtin.template:
src: "base.cmd.j2"
dest: "{{ deploy_ioc_ioc_directory }}/iocBoot/base.cmd"
owner: "{{ host_config.softioc_user }}"
group: "{{ host_config.softioc_group }}"
mode: "0664"
4 changes: 4 additions & 0 deletions roles/device_roles/keithley428/templates/base.cmd.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@


dbLoadDatabase("{{ deploy_ioc_required_module_path }}/dbd/{{ deploy_ioc_executable }}.dbd")
{{ deploy_ioc_executable }}_registerRecordDeviceDriver(pdbbase)
7 changes: 7 additions & 0 deletions roles/install_module/vars/keithley428_0000000.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
keithley428_0000000:
name: Keithley428
url: https://github.com/NSLS-II/Keithley428
# TODO: Replace with actual commit hash when repo is available
version: "PLACEHOLDER"
executable: "Keithley428"
Loading