SMOO does not update record when it changes, correct? Wouldn’t you need to add a FLINK in the ao record to make this work?
record(ao, "$(dev):sm") {
field(DESC, "Smoothing")
field(OUT, "$(dev):rawval.SMOO")
field(FLNK, "$(dev):rawval")
}
- Tim
Field SMOO is not a link field. You need to arrange for the sm record to write its value to rawvalue.SMOO. To do that you need to change it from an ai to an ao
record.
This should work:
record(ao, "$(dev):sm") {
field(DESC, "Smoothing")
field(OUT, "$(dev):rawval.SMOO")
}
Hi here I have 2 of my database records:
################################################################
1) record(ai, "$(dev):sm") {
2) field(DESC, "Smoothing")
3) }
4) record(ai, "$(dev):rawval") {
5) field(SCAN, ".1 second")
6) field(DTYP, "asynInt32") #
7) field(INP, "@asyn(int32 $(addr) 100)")
8) field(SMOO, "$(dev):sm")
9) field(FLNK, "$(dev):coef")
}
################################################################
This fails on
Can't set "bc1:rawval.SMOO" to "bc1:sm"
Error at or before ")" in file "db/newioc8.db" line 8
If I put a constant (0 - 1) in line(8) it works
Amien