Added rva_datafile name and added rva to /sample group

r3151 | ffr | 2011-05-20 12:02:45 +1000 (Fri, 20 May 2011) | 1 line
This commit is contained in:
Ferdi Franceschini
2011-05-20 12:02:45 +10:00
committed by Douglas Clowes
parent afa42563a0
commit c1b90c4f7d

View File

@@ -398,6 +398,7 @@ debug_log "rdVisc [sct] [sct result]"
debug_log "file: ${file_name}"
sct datafile "${file_name}"
set f [open "[sct datafile].txt" "w"]
rva_datafile [ file tail [sct datafile] ]
puts $f "SRY[clock format [sct test_time] -format "%d%m%Y"]"
puts $f "SRO[clock format [sct test_time] -format "%H%M%S"]"
close $f
@@ -470,6 +471,9 @@ debug_log "rdVisc [sct] [sct result]"
debug_log "getState error: $catch_message"
}
if {[sct oldval] == "UNKNOWN"} {
rva_datafile "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
if {[sct my_state] != [sct oldval]} {
sct oldval [sct my_state]
sct update [sct my_state]
@@ -944,6 +948,9 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
sicslist setatt $tempobj klass $klass
sicslist setatt $tempobj long_name $tempobj
::utility::mkVar rva_datafile text user rva_datafile true $klass true true
sicslist setatt rva_datafile link data_set
set scobj_hpath /sics/$tempobj
set deviceCommand {\
@@ -1023,8 +1030,8 @@ proc createNode {scobj_hpath sct_controller cmdGroup varName readable writable\
$sct_controller poll $scobj_hpath/device_state 1 halt read
}
hsetprop $scobj_hpath klass $klass
::scobj::hinitprops $tempobj
hsetprop $scobj_hpath klass NXenvironment
::scobj::set_required_props $scobj_hpath
foreach {rootpath hpath klass priv} "
$scobj_hpath sensor NXsensor spy