diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 2285a95b..63b8ec68 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -1314,7 +1314,7 @@ def put_checkstatus_function(MyDriver, func): txt += [' if {[hpropexists [sct] simulated] && [sct simulated] == "true"} {'] txt += [' set pv "${sp}"'] txt += [' hupdateif ${tc_root}/[sct driveable] ${sp}'] - txt += [' }'] + txt += [' } else {'] txt += [' set pv "[hval ${tc_root}/[sct driveable]]"'] txt += [' }'] txt += [' if { abs(${pv} - ${sp}) <= [sct tolerance] } {']