diff --git a/site_ansto/instrument/util/gen_sct.py b/site_ansto/instrument/util/gen_sct.py index 23818420..15853d08 100755 --- a/site_ansto/instrument/util/gen_sct.py +++ b/site_ansto/instrument/util/gen_sct.py @@ -1448,10 +1448,10 @@ def put_var(MyDriver, MyGroup, MyVar): # Generate __ at runtime for driveable driveable = '${name}_' + make_path(MyVar) postfix += [' ansto_makesctdrive %s ${scobj_hpath}/%s ${scobj_hpath}/%s ${sct_controller}' % (driveable, nodename, MyVar['driveable'])] - txt += [' hsetprop ${scobj_hpath}/%s simulated false'] + txt += [' hsetprop ${scobj_hpath}/%s simulated false' % nodename] txt += [' } else {'] txt += [' %s::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for %s"' % (MyDriver['namespace'], MyDriver['name'])] - txt += [' hsetprop ${scobj_hpath}/%s simulated true'] + txt += [' hsetprop ${scobj_hpath}/%s simulated true' % nodename] txt += [' }'] if 'conditional' in MyVar: