EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: setStringParam in my asynPortDriver
From: Mark Rivers <[email protected]>
To: "'Emmanuel Mayssat'" <[email protected]>, "[email protected]" <[email protected]>
Date: Wed, 3 Apr 2013 19:43:43 +0000
Hi Emmanuel,

One of the arguments passed to the asynPortDriver constructor is a bit-mask of all of the asyn interfaces your driver will support.  

You forgot to set the asynOctetMask bit in your call to the constructor.  Here is an example from asyn/testErrorsApp/src/testErrors.cpp

testErrors::testErrors(const char *portName) 
   : asynPortDriver(portName, 
                    1, /* maxAddr */ 
                    (int)NUM_PARAMS,
                     /* Interface mask */
                    asynInt32Mask       | asynFloat64Mask    | asynUInt32DigitalMask | asynOctetMask | 
                      asynInt8ArrayMask | asynInt16ArrayMask | asynInt32ArrayMask    | asynFloat32ArrayMask | asynFloat64ArrayMask |
                      asynOptionMask    | asynEnumMask      | asynDrvUserMask,
                    /* Interrupt mask */
                    asynInt32Mask       | asynFloat64Mask    | asynUInt32DigitalMask | asynOctetMask | 
                      asynInt8ArrayMask | asynInt16ArrayMask | asynInt32ArrayMask    | asynFloat32ArrayMask | asynFloat64ArrayMask |
                      asynEnumMask,
                    0, /* asynFlags.  This driver does not block and it is not multi-device, so flag is 0 */
                    1, /* Autoconnect */
                    0, /* Default priority */
                    0) /* Default stack size*/    
{

Mark

From: [email protected] [mailto:[email protected]] On Behalf Of Emmanuel Mayssat
Sent: Wednesday, April 03, 2013 2:18 PM
To: [email protected]
Subject: setStringParam in my asynPortDriver

I am moving one of my soft devices (a watch with multiple chronometers, time stamps, etc)
to asyn. I converted my "Current_time" record's from TimeStamp to stringin with asynOctetRead DTYP.
In the asynPortDriver thread, I do 
setStringParam(P_CurrentTime, "<time_string>")

But when I start the IOC,   that line cause the following error:
WATCH:8:CrntTimeSI devAsynOctet::initCommon interface asynOctet not found
which apparently means that the asynOctet interface is not registered.
Isn't the asynPortDriver supposed to take care of that?

I looked at the areaDetector code (where setStringParam is frequently used) to no avail.

What am I doing wrong?

Regards,
--
E





References:
setStringParam in my asynPortDriver Emmanuel Mayssat

Navigate by Date:
Prev: setStringParam in my asynPortDriver Emmanuel Mayssat
Next: pid record graham waters
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: setStringParam in my asynPortDriver Emmanuel Mayssat
Next: pid record graham waters
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·