Hi Pavel,
Firstly, we can’t see how the record "$(P)$(R)WF1 gets processed. Is there any forward link to this record? for instance,
record(… , "$(P)$(R)wf1")
{
…
field(FLNK,
"$(P)$(R)WF1")
}
If no, you may add CP or CPP in INPA, INPB, INCC, such as field(INCC, "$(P)$(R)wf1 CP").
Secondly, you may set "$(P)$(R)WF1.MDEL to -1, which means the monitor is triggered whenever the record is scanned. Then, camonitor “"$(P)$(R)WF1”.
But I’m not sure if this works for the acalcout record.
Lastly, I’m not quite sure if you used the "Store" operator correctly for "AA:=CC*5/128*A-B;AA". Does it mean: evaluate the _expression_ CC*5/128*A-B,
store the result in the input array AA, and set the AVAL field to AA?
Yong
Hello,
I am experiencing some difficulties with this record type.
record(acalcout, "$(P)$(R)WF1") {
field(INPA, "$(P)$(R)setY1:RBV")
field(INPB, "$(P)$(R)ch1pos:RBV")
field(INCC, "$(P)$(R)wf1")
field(CALC, "AA:=CC*5/128*A-B;AA")
I would like to plot an array in CSS 3.1.4. So I'm using an XY graph widget with the Y PV parameter pointed to $(P)$(R)WF1.AVAL.
However it does not put a monitor on the AVAL field. So the plot is not being updated every time the calculation is made.
Any suggestions will be much appreciated.
--
Best regards,
Pavel Maslov, MS
Controls Engineer at Pulsed power Lab
Efremov Institute for Electro-Physical Apparatus
St. Petersburg, Russia
Mobile: +7 (951) 672 22 19
Landline: +7 (812) 461 01 01