Thanks for the tip, that will shorten my code considerably, especially for the SNL programs with many arrays of 100 PV names!
Mark
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Benjamin Franksen
Sent: Tuesday, June 04, 2013 9:02 AM
To: [email protected]
Subject: Re: SEQ with dynamic assignment of PV in array variable
Hi Mark
On Monday, June 03, 2013 21:33:35 Mark Rivers wrote:
> int ReadArray[MAX_SIGNALS];
> assign ReadArray to
> {"","","","","","","","","","","","","","","","",
> "","","","","","","","","","","","","","","",""};
This can be shortened to
> assign ReadArray to {};
The general rule for
assign arrayvar to {<pv-name-list>}
is that
* missing PV names in <pv-name-list> default to ""
* excess PV names in <pv-name-list> are discarded
This is now documented:
http://www-csr.bessy.de/control/SoftDist/sequencer/Reference.html#assign-
connect
Cheers
--
Ben Franksen
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachm€nts
- References:
- SEQ with dynamic assignment of PV in array variable Emmanuel Mayssat
- RE: SEQ with dynamic assignment of PV in array variable Emmanuel Mayssat
- RE: SEQ with dynamic assignment of PV in array variable Mark Rivers
- Re: SEQ with dynamic assignment of PV in array variable Benjamin Franksen
- Navigate by Date:
- Prev:
RE: iocLogServer connection problem on win32-x86 platform Hill, Jeff
- Next:
RE: IP330 modules question Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: SEQ with dynamic assignment of PV in array variable Benjamin Franksen
- Next:
Re: SEQ with dynamic assignment of PV in array variable Benjamin Franksen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|