Extend 3He poll to 900 seconds and add refresh command

This commit is contained in:
Douglas Clowes
2014-10-27 17:50:55 +11:00
parent 81a425e293
commit 155d24588a

View File

@ -7,7 +7,7 @@ driver he3_polanal = {
group polariser = {
var spin = {
type = text;
readable = 10;
readable = 900;
read_command = 'polariser';
read_function = rdValue;
writeable = 1;
@ -24,7 +24,7 @@ driver he3_polanal = {
group analyser = {
var spin = {
type = text;
readable = 10;
readable = 900;
read_command = 'analyser';
read_function = rdValue;
writeable = 1;
@ -84,6 +84,9 @@ driver he3_polanal = {
code setValue = {%%
set cmd "${cmd_str}"
if {[string equal -nocase [sct target] "refresh"]} {
set cmd "${cmd_str}"
}
if {[string equal -nocase [sct target] "dn"]} {
set cmd "${cmd_str} -"
}