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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: #define usage in Sequencer |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Hyung Jin Kim <hjkim09 at gmail.com> |
Date: | Sun, 2 Apr 2023 12:35:40 +0000 |
Hi,
#define is allowed in the sequencer. Here is an example of a sequencer program that uses it:
Perhaps your problem is in this line:
Where is the S macro defined?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Hyung Jin Kim via Tech-talk <tech-talk at aps.anl.gov>
Sent: Sunday, April 2, 2023 7:25 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: #define usage in Sequencer Dear All,
I tried to set a size of array using predefined value in sequencer code as follows:
program sncTest
#define A_SIZE 3 double test_array[A_SIZE]; assign test_array to {"{S}:r1", "{S}:r2", "{S}:r3"}; monitor test_array; ....
However, it gives an error when it is compiled. #define is not allowed in sequencer. An used sequencer version is 2-2-6.
../sncTest.stt:3: lexical error: invalid character
../sncTest.stt:3: syntax error near token '' ../sncTest.stt:3: parser giving up Thanks,
|