Hi Ben,
I was able to get it to compile and it seems to be working now. I think there may have been another compilation error somewhere after retyping it out from scratch. I still need to understand more about the section on when to use monitor vs. explicit pvget(). I assume the when() block only runs once when a state transition happens is that correct?
Thanks,
Adam
-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Ben Franksen via Tech-talk
Sent: Saturday, March 13, 2021 2:26 AM
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Re: SEQ Record Question
> when () {
> if(strcmp(voltage, "STANDBY")==0){
> /* turn light on */
> light = 8;
> pvPut(light);
>
> } state light_on
> }
Could you post the declaration of voltage? Is it of type string? Does it have a monitor statement attached?
Cheers
Ben
- Replies:
- Re: SEQ Record Question Ben Franksen via Tech-talk
- References:
- SEQ Record Question Manoussakis, Adamandios via Tech-talk
- RE: SEQ Record Question Layne (US), William C via Tech-talk
- RE: SEQ Record Question Manoussakis, Adamandios via Tech-talk
- Re: SEQ Record Question Ralph Lange via Tech-talk
- Re: SEQ Record Question Ben Franksen via Tech-talk
- Re: SEQ Record Question Ben Franksen via Tech-talk
- Navigate by Date:
- Prev:
Re: Re: Re: Re: Re: RE: Re: Re: modbus write registers error to Pilz PLC Mark Rivers via Tech-talk
- Next:
Re: SEQ Record Question Ben Franksen via Tech-talk
- 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 Record Question Ben Franksen via Tech-talk
- Next:
Re: SEQ Record Question Ben Franksen via Tech-talk
- 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
|