diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 9350f208..621f65d8 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -1351,7 +1351,14 @@ def put_config(MyDriver): txt += [' set PORT [dict get $v port]'] txt += [' set name [dict get $v name]'] txt += [' MakeAsyncProtocol ${name}_protocol'] + txt += [' if { [dict exists $v "terminator"] } {'] + txt += [' ${name}_protocol sendterminator "[dict get $v "terminator"]"'] + txt += [' ${name}_protocol replyterminator "[dict get $v "terminator"]"'] + txt += [' }'] txt += [' MakeAsyncQueue ${name}_queue ${name}_protocol ${IP} ${PORT}'] + txt += [' if { [dict exists $v "timeout"] } {'] + txt += [' ${name}_queue timeout "[dict get $v "timeout"]"'] + txt += [' }'] if 'make_args' in MyDriver: txt += [' set arg_list [list]'] txt += [' foreach arg {' + MyDriver['make_args'] + '} {']