I added a driver for the EL755 magnet controller using streamdevice

This commit is contained in:
2017-03-07 16:37:19 +01:00
parent 4b377d1b2e
commit 6ea6fdcb85
3 changed files with 78 additions and 0 deletions

22
sinqEPICSApp/Db/el755.db Normal file
View File

@ -0,0 +1,22 @@
##
## Read the Current
##
record(ai, "$(PREFIX)CurRBV") {
field(DTYP, "stream")
field(DESC, "Current Readback")
field(INP, "@el755.proto read($(NO)) el755 0")
field(SCAN, "1 second")
field(PREC, "3")
field(EGU, "A")
}
##
## Set the current
##
record(ao, "$(PREFIX)CurSet") {
field(DTYP, "stream")
field(DESC, "Setpoint current")
field(OUT, "@el755.proto write($(NO)) el755 0")
field(PREC, "3")
field(EGU, "A")
}

View File

@ -0,0 +1,22 @@
# Streamdevice protocol file for the PSI EL755 Magnet Controller
InTerminator = "\r";
OutTerminator = "\r";
#ExtraInput = Ignore;
read {
out "I \$1";
in "%*f %f";
@mismatch {out "RMT 1";
in "";
out "ECHO 0";
in "";
}
}
write {
out "I \$1 %f";
in "";
}