|
|
Experimental Physics and
| ||||||||||||||||
|
|
[...] So it will take 40*timescale to get all I want [...]Hi Chen, the choices of SCAN are rather limited. In your case I would suggest that your calculate the desired readout period from the timescale and use a counter to process your readout. E.g.: record(calcout,"la:s") {
field(SCAN,"1 second")
field(INPA,"la:s.VAL")
field(INPB,"la:t.VAL")
field(CALC,"A+1>=B?0:A+1")
field(OOPT,"When Zero")
field(OUT,"la:cnt.PROC")
}
record(longin,"la:t") {
field(INP,"1")
field(EGU,"s")
}
record(calc,"la:cnt") {
field(INPA,"la:cnt")
field(CALC,"A+1")
}Here the record la:cnt is processed every "la:t" seconds (for "la:t">0). Cheers Andreas
| ||||||||||||||||
| ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
· Distributions · Download · Documents · Links · Licensing · |