Regenerate SCT drivers
This commit is contained in:
@@ -227,9 +227,7 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
sicslist setatt ${name} long_name ${name}
|
||||
|
||||
set scobj_hpath /sics/${name}
|
||||
# Start of unnamed group
|
||||
|
||||
# Start of var: cg123
|
||||
hfactory ${scobj_hpath}/cg123 plain spy float
|
||||
hsetprop ${scobj_hpath}/cg123 control true
|
||||
hsetprop ${scobj_hpath}/cg123 data true
|
||||
@@ -241,7 +239,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath}/cg123 type "part"
|
||||
hsetprop ${scobj_hpath}/cg123 nxalias "${name}_cg123"
|
||||
|
||||
# Start of var: cns_out
|
||||
hfactory ${scobj_hpath}/cns_out plain spy float
|
||||
hsetprop ${scobj_hpath}/cns_out control true
|
||||
hsetprop ${scobj_hpath}/cns_out data true
|
||||
@@ -253,7 +250,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath}/cns_out type "part"
|
||||
hsetprop ${scobj_hpath}/cns_out nxalias "${name}_cns_out"
|
||||
|
||||
# Start of var: power
|
||||
hfactory ${scobj_hpath}/power plain spy float
|
||||
hsetprop ${scobj_hpath}/power control true
|
||||
hsetprop ${scobj_hpath}/power data true
|
||||
@@ -265,7 +261,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath}/power type "part"
|
||||
hsetprop ${scobj_hpath}/power nxalias "${name}_power"
|
||||
|
||||
# Start of var: status
|
||||
hfactory ${scobj_hpath}/status plain spy text
|
||||
hsetprop ${scobj_hpath}/status read ${ns}::getState ${scobj_hpath} rdAll {GET /Bragg/proposal/reactor.jsp?type=ALL}
|
||||
hsetprop ${scobj_hpath}/status rdAll ${ns}::rdAll ${scobj_hpath}
|
||||
@@ -286,7 +281,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath}/status simulated true
|
||||
}
|
||||
|
||||
# Start of var: tg123
|
||||
hfactory ${scobj_hpath}/tg123 plain spy float
|
||||
hsetprop ${scobj_hpath}/tg123 control true
|
||||
hsetprop ${scobj_hpath}/tg123 data true
|
||||
@@ -298,7 +292,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath}/tg123 type "part"
|
||||
hsetprop ${scobj_hpath}/tg123 nxalias "${name}_tg123"
|
||||
|
||||
# Start of var: tg4
|
||||
hfactory ${scobj_hpath}/tg4 plain spy float
|
||||
hsetprop ${scobj_hpath}/tg4 control true
|
||||
hsetprop ${scobj_hpath}/tg4 data true
|
||||
@@ -314,7 +307,6 @@ proc ::scobj::reactor_status::mkDriver { sct_controller name device_class simula
|
||||
hsetprop ${scobj_hpath} data "true"
|
||||
hsetprop ${scobj_hpath} klass "@none"
|
||||
hsetprop ${scobj_hpath} type "part"
|
||||
# End of unnamed group
|
||||
hsetprop ${scobj_hpath} klass ${device_class}
|
||||
hsetprop ${scobj_hpath} data true
|
||||
hsetprop ${scobj_hpath} debug_threshold 5
|
||||
@@ -359,8 +351,8 @@ proc add_reactor_status {name ip_address tcp_port} {
|
||||
::scobj::reactor_status::add_driver ${name} "NXsource" ${simulation_flag} ${ip_address} ${tcp_port}
|
||||
}
|
||||
|
||||
clientput "file evaluation of sct_reactor_status.tcl"
|
||||
::scobj::reactor_status::sics_log 9 "file evaluation of sct_reactor_status.tcl"
|
||||
clientput "file evaluation of reactor_status_sct.tcl"
|
||||
::scobj::reactor_status::sics_log 9 "file evaluation of reactor_status_sct.tcl"
|
||||
|
||||
proc ::scobj::reactor_status::read_config {} {
|
||||
set catch_status [ catch {
|
||||
@@ -432,7 +424,7 @@ proc ::scobj::reactor_status::read_config {} {
|
||||
}
|
||||
makesctcontroller sct_${name} aqadapter ${asyncqueue}
|
||||
}
|
||||
${ns}::mkDriver sct_${name} ${device_class} ${simulation_flag} ${ip_address} ${tcp_port}
|
||||
${ns}::mkDriver sct_${name} ${name} ${device_class} ${simulation_flag} ${ip_address} ${tcp_port}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user