Change SCT wrappers to use ip_address and tcp_port
This commit is contained in:
@ -1,8 +1,11 @@
|
|||||||
# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
|
# vim: ts=8 sts=2 sw=2 expandtab autoindent smartindent nocindent
|
||||||
driver agilent_33220A = {
|
driver agilent_33220A = {
|
||||||
|
wrapper_property nosctcontroller = True
|
||||||
protocol = std
|
protocol = std
|
||||||
class = environment
|
class = environment
|
||||||
simulation_group = environment_simulation
|
simulation_group = environment_simulation
|
||||||
code mkWrapper = {%%
|
code mkWrapper = {%%
|
||||||
|
${ns}::sics_log 9 "makesctcontroller sct_${name} std ${ip_address}:${tcp_port}"
|
||||||
|
makesctcontroller sct_${name} std ${ip_address}:${tcp_port}
|
||||||
%%}
|
%%}
|
||||||
}
|
}
|
||||||
|
@ -9,8 +9,8 @@ driver green_magnet_labview = {
|
|||||||
# TCL code
|
# TCL code
|
||||||
::scobj::green::mkGreen {
|
::scobj::green::mkGreen {
|
||||||
name "green_magnet"
|
name "green_magnet"
|
||||||
IP 137.157.201.88
|
IP ${ip_address}
|
||||||
PORT 5001
|
PORT ${tcp_port}
|
||||||
tuning 1
|
tuning 1
|
||||||
interval 3
|
interval 3
|
||||||
}
|
}
|
||||||
|
@ -3,9 +3,10 @@ driver west4100 = {
|
|||||||
protocol = std
|
protocol = std
|
||||||
class = environment
|
class = environment
|
||||||
simulation_group = environment_simulation
|
simulation_group = environment_simulation
|
||||||
|
wrapper_property nosctcontroller = True
|
||||||
add_args = 'dev_id'
|
add_args = 'dev_id'
|
||||||
make_args = 'IP dev_id'
|
make_args = 'dev_id'
|
||||||
code mkDriver = {%%
|
code mkWrapper = {%%
|
||||||
::environment::temperature::mkwest400 $name $IP $dev_id
|
::environment::temperature::mkwest400 ${name} ${ip_address} ${dev_id}
|
||||||
%%}
|
%%}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user