Change SCT wrappers to use ip_address and tcp_port

This commit is contained in:
Douglas Clowes
2014-08-19 11:27:43 +10:00
parent 04a87e5ff2
commit 6f5892f07d
3 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,11 @@
# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
driver agilent_33220A = {
wrapper_property nosctcontroller = True
protocol = std
class = environment
simulation_group = environment_simulation
code mkWrapper = {%%
${ns}::sics_log 9 "makesctcontroller sct_${name} std ${ip_address}:${tcp_port}"
makesctcontroller sct_${name} std ${ip_address}:${tcp_port}
%%}
}

View File

@ -9,8 +9,8 @@ driver green_magnet_labview = {
# TCL code
::scobj::green::mkGreen {
name "green_magnet"
IP 137.157.201.88
PORT 5001
IP ${ip_address}
PORT ${tcp_port}
tuning 1
interval 3
}

View File

@ -3,9 +3,10 @@ driver west4100 = {
protocol = std
class = environment
simulation_group = environment_simulation
wrapper_property nosctcontroller = True
add_args = 'dev_id'
make_args = 'IP dev_id'
code mkDriver = {%%
::environment::temperature::mkwest400 $name $IP $dev_id
make_args = 'dev_id'
code mkWrapper = {%%
::environment::temperature::mkwest400 ${name} ${ip_address} ${dev_id}
%%}
}