From b8f07e873d856e279a0c762ce1bc989e04ca74f1 Mon Sep 17 00:00:00 2001 From: Ned Arnold Date: Fri, 17 Mar 1995 17:51:55 +0000 Subject: [PATCH] Version 1.15 always fills in RxCV, even if RxPV's are not valid. --- src/rec/recScan.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/rec/recScan.c b/src/rec/recScan.c index dc7e20bef..2e668170a 100644 --- a/src/rec/recScan.c +++ b/src/rec/recScan.c @@ -57,9 +57,12 @@ * .13 03-02-95 nda Post .val field when a new point is complete during a * scan. This will assist in poin by point plots. * .14 03-02-95 nda Bug fix on filling PxRA's. ALWAYS CALL CHCK_MOTORS. + * .15 03-15-95 nda If no readback PV (RxPV) is specified, copy desired + * value (PxDV) to current value (RxCV). Now, plotting + * programs can always monitor RxCV. */ -#define VERSION 1.14 +#define VERSION 1.15 @@ -1056,6 +1059,7 @@ struct scanRecord *pscan; abortScan = 1; } } else { + pscan->r1cv = pscan->p1dv; pscan->p1ra[pscan->cpt] = pscan->p1dv; } if(!pscan->r2nv) { @@ -1071,6 +1075,7 @@ struct scanRecord *pscan; abortScan = 1; } } else { /* no readback PV, stuff with desired value */ + pscan->r2cv = pscan->p2dv; pscan->p2ra[pscan->cpt] = pscan->p2dv; } if(!pscan->r3nv) { @@ -1086,6 +1091,7 @@ struct scanRecord *pscan; abortScan = 1; } } else { /* no readback PV, stuff with desired value */ + pscan->r3cv = pscan->p3dv; pscan->p3ra[pscan->cpt] = pscan->p3dv; } if(!pscan->r4nv) { @@ -1101,6 +1107,7 @@ struct scanRecord *pscan; abortScan = 1; } } else { /* no readback PV, stuff with desired value */ + pscan->r4cv = pscan->p4dv; pscan->p4ra[pscan->cpt] = pscan->p4dv; }