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  <20092010  2011  2012  2013  2014  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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: sequencer feature request
From: Dirk Zimoch <[email protected]>
To: [email protected]
Date: Wed, 09 Sep 2009 12:13:48 +0200
I found several places in the code where the sequencer uses MAX_STRING_SIZE+1 for string lengths of PV names and macros. In EPICS base MAX_STRING_SIZE is defined as 40. For example in seq_main.c:

/*
 * Evaluate channel names by macro substitution.
 */
#define		MACRO_STR_LEN	(MAX_STRING_SIZE+1)
LOCAL void seqChanNameEval(pSP)
SPROG		*pSP;
{
	CHAN		*pDB;
	int		i;

	pDB = pSP->pChan;
	for (i = 0; i < pSP->numChans; i++, pDB++)
	{
		pDB->dbName = calloc(1, MACRO_STR_LEN);
		seqMacEval(pDB->dbAsName, pDB->dbName, MACRO_STR_LEN, pSP->pMacros);
#ifdef	DEBUG
		printf("seqChanNameEval: \"%s\" evaluated to \"%s\"\n",
			pDB->dbAsName, pDB->dbName);
#endif	/*DEBUG*/
	}
}

It might help to replace those uses of MAX_STRING_SIZE+1 with PVNAME_STRINGSZ.

Dirk



Dirk Zimoch wrote:
I tested the sequencer with a long name and it seems that it truncates the PV name to 41 chars.

A seqChanShow shows the difference between the name used in assign and the actual name used in CA:

Channel name: "DZ:45678901234567890123456789012345678901"
Unexpanded (assigned) name: "DZ:456789012345678901234567890123456789012345678901234567890"

Dirk



Mark Rivers wrote:
EPICS base defines the maximum length of the PV name to be PVNAME_STRINGSZ, which is currently 61 including the nil terminator. What length limitation does the sequencer impose? Is it more restrictive than this? Mark
________________________________

From: [email protected] on behalf of Patrick Thomas
Sent: Thu 9/3/2009 6:29 PM
To: [email protected]
Subject: sequencer feature request



Hi,

I was wondering if I could ask for a feature request for the next
version of the sequencer? Is there any chance that it would be possible
to use unlimited length record names in assign to statements?

Thank you,
Patrick






--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

Replies:
Re: sequencer feature request Eric Norum
References:
sequencer feature request Patrick Thomas
RE: sequencer feature request Mark Rivers
Re: sequencer feature request Dirk Zimoch

Navigate by Date:
Prev: Re: sequencer feature request Dirk Zimoch
Next: RE: Access security problem GOURNAY Jean-Francois
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: sequencer feature request Dirk Zimoch
Next: Re: sequencer feature request Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·