initial commit
This commit is contained in:
24
tcl/drivers/dtm.tcl
Normal file
24
tcl/drivers/dtm.tcl
Normal file
@ -0,0 +1,24 @@
|
||||
# DTM pressure sensors
|
||||
namespace eval dtm {} {
|
||||
}
|
||||
|
||||
proc stdConfig::dtm {fact} {
|
||||
controller std "\r" 5
|
||||
prop startcmd "IDN?"
|
||||
|
||||
pollperiod 1
|
||||
obj dtm rd -float
|
||||
prop read dtm::read $fact
|
||||
|
||||
}
|
||||
|
||||
proc dtm::read {fact} {
|
||||
sct send "PRES?"
|
||||
return "dtm::update $fact"
|
||||
}
|
||||
|
||||
proc dtm::update {fact} {
|
||||
sct update [expr [sct result] * $fact]
|
||||
return idle
|
||||
}
|
||||
|
Reference in New Issue
Block a user