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