Make Agilent use mkWrapper
This commit is contained in:
@ -3,6 +3,6 @@ driver agilent_33220A = {
|
|||||||
protocol = std
|
protocol = std
|
||||||
class = environment
|
class = environment
|
||||||
simulation_group = environment_simulation
|
simulation_group = environment_simulation
|
||||||
code mkDriver = {%%
|
code mkWrapper = {%%
|
||||||
%%}
|
%%}
|
||||||
}
|
}
|
||||||
|
@ -32,17 +32,8 @@ proc ::scobj::agilent_33220A::mkDriver { sct_controller name } {
|
|||||||
set ns "[namespace current]"
|
set ns "[namespace current]"
|
||||||
set catch_status [ catch {
|
set catch_status [ catch {
|
||||||
|
|
||||||
MakeSICSObj ${name} SCT_OBJECT
|
# mkWrapper hook code starts
|
||||||
|
# mkWrapper hook code ends
|
||||||
sicslist setatt ${name} klass environment
|
|
||||||
sicslist setatt ${name} long_name ${name}
|
|
||||||
|
|
||||||
set scobj_hpath /sics/${name}
|
|
||||||
hsetprop ${scobj_hpath} klass environment
|
|
||||||
hsetprop ${scobj_hpath} data true
|
|
||||||
hsetprop ${scobj_hpath} debug_threshold 5
|
|
||||||
# mkDriver hook code starts
|
|
||||||
# mkDriver hook code ends
|
|
||||||
} catch_message ]
|
} catch_message ]
|
||||||
handle_exception ${catch_status} ${catch_message}
|
handle_exception ${catch_status} ${catch_message}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user