EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Problems with dbLinkIsConstant
From: Torsten Bögershausen via Core-talk <core-talk at aps.anl.gov>
To: <core-talk at aps.anl.gov>
Date: Tue, 30 Jun 2020 10:09:01 +0200
Hej all,

I have a problem with dbLinkIsConstant(), it seems.

If I run the motor module with this code:

#if LT_EPICSBASE(7,0,0,0)
#define dbLinkIsConstant(lnk) ((lnk)->type == CONSTANT)
#else
#include "dbLink.h"
#endif

And later

    if (dbLinkIsConstant(&pmr->dol))
    {
        pmr->udf = FALSE;
Debug(pmr,3, "init_record %s\n", "dbLinkIsConstant=true set UDF=FALSE");

        recGblInitConstantLink(&pmr->dol, DBF_DOUBLE, &pmr->val);
    }

I get this log message:
[motorRecord.cc:906 IOC:m1] init_record dbLinkIsConstant=true set UDF=FALSE

However, the .DOL field is empty.
Is this the expected behavior ?

EPICS base is here:
commit 34834dfe973a577f342503441e7b33b7fe322de5 (HEAD, tag: R7.0.3.1, base-R7.0.4)
Author: Andrew Johnson <anj at anl.gov>
Date:   Fri Nov 1 14:08:44 2019 -0500

Thanks for any help
/Torsten

Replies:
Re: Problems with dbLinkIsConstant Johnson, Andrew N. via Core-talk

Navigate by Date:
Prev: Build failed: epics-base base-integration-573 AppVeyor via Core-talk
Next: Build failed: EPICS Base 7 base-7.0-43 AppVeyor via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Build failed: epics-base base-integration-573 AppVeyor via Core-talk
Next: Re: Problems with dbLinkIsConstant Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024