Hi Randall,
You have set $(P):fsControl to have:
field(DTYP, "asynInt32")
But you have not set the INP field. If this is just a soft record then you should delete the DTYP entry.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Randall Cayford via Tech-talk
Sent: Thursday, May 6, 2021 12:44 PM
To: tech-talk at aps.anl.gov
Subject: calcout record processing
I’m trying to do a simple chain of an input record, a calc record and an output record. I can’t get the calc record to process unless I force it.
record(ai, “$(P):fsControl")
field(FLNK, "$(P):fsCalc PP")
record(calcout, "$(P):fsCalc")
field(DESC, "Convert 1,0 shutter to 3,1")
field(INPA, "$(P):fsControl")
field(OUT, "$(P):fsSet PP")
field(OOPT, "Every Time")
field(OUT, "@asyn($(PORT,recursive),0,1)PMAC_WI_M8192")
If I put to fsControl, it sets but nothing happens. If I put to fsCalc.PROC, everything works correctly - it reads fsControl, calculates the VAL and triggers fsSet with the calculated value. If I make fsCalc SCAN periodic it also works.
I thought calc records were supposed to be processed whenever their inputs were processed. I’ve tried with and without the FLNK in fsControl. So I’m missing something about how calc record processing is triggered.
|