"Russell J. Page, Sr." wrote:
>
> I'm presently trying to resolve a problem in an EPICS Sequencer Program.
> I need to create a delay and the SNL delay function is unsuitable for
> what I need to do.
It would help if you explain a little more about what you actually want to
occur and why the SNL delay function can't do what you want. I'm not sure
a watchdog timer would be your best solution, but without understanding
the problem it's hard to suggest alternatives (eg would calling taskDelay
in an action statement solve this?).
> Using the escape mechanism with a usr function, I am
> able to create a vxWorks watchdog timer okay, but when the timer
> expires, I need to return to the sequencer code. At present, my test
> timer returns a message to my debug terminal as I expect (I use the
> printf function). I tried every permutation I can think of on the idea
> of exit(), wdDelete, wdCancel, etc. but all that happens is either a
> reboot of the target or the terminal hangs. ^C, ^Z etc. won't break it.
The watchdog callback function is executed within ISR context; you can get
all kinds of crashes if you're not careful here. Check the vxWorks users
manual for information on what is & is not allowed.
- Andrew
--
New country, job, address, car and signature; same old Andrew Johnson
- References:
- wdTimer & EPICS sequencer Russell J. Page, Sr.
- Navigate by Date:
- Prev:
wdTimer & EPICS sequencer Russell J. Page, Sr.
- Next:
dbst problem when built against 3.13.1 saa
- 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:
wdTimer & EPICS sequencer Russell J. Page, Sr.
- Next:
dbst problem when built against 3.13.1 saa
- 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
|