diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 8f748c28..53896877 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -782,7 +782,9 @@ def put_write_function(MyDriver, func): txt += [' }'] txt += [' }'] txt += [' debug_log 1 "%s sct send ${cmd}"' % func] - txt += [' sct send "${cmd}"'] + txt += [' if {![string equal -nocase -length 10 ${cmd} "@@NOSEND@@"]} {'] + txt += [' sct send "${cmd}"'] + txt += [' }'] txt += [' return ${nextState}'] txt += ['}'] emit(txt)