Regenerate the affected drivers
This commit is contained in:
@@ -303,10 +303,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/break 10
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/break simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/break simulated true
|
||||
}
|
||||
|
||||
# Start of var: id
|
||||
@@ -325,10 +325,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/id 10
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/id simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/id simulated true
|
||||
}
|
||||
|
||||
hsetprop ${scobj_hpath} data "true"
|
||||
@@ -359,10 +359,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/auto_start 5
|
||||
${sct_controller} write ${scobj_hpath}/ch1/auto_start
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/auto_start simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/auto_start simulated true
|
||||
}
|
||||
|
||||
# Start of var: current
|
||||
@@ -381,10 +381,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/current 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/current simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/current simulated true
|
||||
}
|
||||
|
||||
# Start of var: go
|
||||
@@ -404,10 +404,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} write ${scobj_hpath}/ch1/go
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/go simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/go simulated true
|
||||
}
|
||||
|
||||
# Start of var: i_lim
|
||||
@@ -426,10 +426,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/i_lim 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/i_lim simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/i_lim simulated true
|
||||
}
|
||||
|
||||
# Start of var: i_trip
|
||||
@@ -452,10 +452,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/i_trip 5
|
||||
${sct_controller} write ${scobj_hpath}/ch1/i_trip
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/i_trip simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/i_trip simulated true
|
||||
}
|
||||
|
||||
# Start of var: module
|
||||
@@ -474,10 +474,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/module 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/module simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/module simulated true
|
||||
}
|
||||
|
||||
# Start of var: status
|
||||
@@ -496,10 +496,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/status 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/status simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/status simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_lim
|
||||
@@ -518,10 +518,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/v_lim 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/v_lim simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/v_lim simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_ramp
|
||||
@@ -544,10 +544,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/v_ramp 5
|
||||
${sct_controller} write ${scobj_hpath}/ch1/v_ramp
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/v_ramp simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/v_ramp simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_sp
|
||||
@@ -579,10 +579,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/v_sp 5
|
||||
${sct_controller} write ${scobj_hpath}/ch1/v_sp
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/v_sp simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/v_sp simulated true
|
||||
}
|
||||
|
||||
# Start of var: voltage
|
||||
@@ -601,10 +601,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch1/voltage 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch1/voltage simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch1/voltage simulated true
|
||||
}
|
||||
hsetprop ${scobj_hpath}/ch1 data "true"
|
||||
hsetprop ${scobj_hpath}/ch1 klass "@none"
|
||||
@@ -635,10 +635,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/auto_start 5
|
||||
${sct_controller} write ${scobj_hpath}/ch2/auto_start
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/auto_start simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/auto_start simulated true
|
||||
}
|
||||
|
||||
# Start of var: current
|
||||
@@ -657,10 +657,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/current 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/current simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/current simulated true
|
||||
}
|
||||
|
||||
# Start of var: go
|
||||
@@ -680,10 +680,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} write ${scobj_hpath}/ch2/go
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/go simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/go simulated true
|
||||
}
|
||||
|
||||
# Start of var: i_lim
|
||||
@@ -702,10 +702,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/i_lim 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/i_lim simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/i_lim simulated true
|
||||
}
|
||||
|
||||
# Start of var: i_trip
|
||||
@@ -728,10 +728,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/i_trip 5
|
||||
${sct_controller} write ${scobj_hpath}/ch2/i_trip
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/i_trip simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/i_trip simulated true
|
||||
}
|
||||
|
||||
# Start of var: module
|
||||
@@ -750,10 +750,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/module 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/module simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/module simulated true
|
||||
}
|
||||
|
||||
# Start of var: status
|
||||
@@ -772,10 +772,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/status 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/status simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/status simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_lim
|
||||
@@ -794,10 +794,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/v_lim 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/v_lim simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/v_lim simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_ramp
|
||||
@@ -820,10 +820,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/v_ramp 5
|
||||
${sct_controller} write ${scobj_hpath}/ch2/v_ramp
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/v_ramp simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/v_ramp simulated true
|
||||
}
|
||||
|
||||
# Start of var: v_sp
|
||||
@@ -855,10 +855,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/v_sp 5
|
||||
${sct_controller} write ${scobj_hpath}/ch2/v_sp
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/v_sp simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/v_sp simulated true
|
||||
}
|
||||
|
||||
# Start of var: voltage
|
||||
@@ -877,10 +877,10 @@ proc ::scobj::nhq_200::mkDriver { sct_controller name device_class simulation_fl
|
||||
|
||||
if {[string equal -nocase "${simulation_flag}" "false"]} {
|
||||
${sct_controller} poll ${scobj_hpath}/ch2/voltage 5
|
||||
hsetprop ${scobj_hpath}/%s simulated false
|
||||
hsetprop ${scobj_hpath}/ch2/voltage simulated false
|
||||
} else {
|
||||
::scobj::nhq_200::sics_log 9 "simulation_flag=${simulation_flag} => No poll/write for nhq_200"
|
||||
hsetprop ${scobj_hpath}/%s simulated true
|
||||
hsetprop ${scobj_hpath}/ch2/voltage simulated true
|
||||
}
|
||||
hsetprop ${scobj_hpath}/ch2 data "true"
|
||||
hsetprop ${scobj_hpath}/ch2 klass "@none"
|
||||
|
||||
Reference in New Issue
Block a user