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: Creating a Simple EPICS Sequencer Program |
From: | Bradley Pietrzak <[email protected]> |
To: | Jay Steele <[email protected]>, [email protected] |
Date: | Thu, 7 Jul 2011 10:35:25 -0400 |
Hi Bradley,
I just went through the process of coming up to speed on State Notation Language myself with EPICS for a robot control application and it is very useful. After you experiment around a little with the example IOC template (per Eric's suggestion below), and then build your own EPICS application, you can simply put the .st file in the application's src directory and add the .st file to the SRCS list in the application makefile. Also, for non-VxWorks OS's such as Linux, add a registrar(stnameRegistrar) statement to your appCommonInclude.dbd file. Then start the SNL task by calling the seq function from your application's startup script after iocInit. See the online document "State Notation Language and Sequencer Users Guide" for a well-written introduction.
I recommend drawing up your state diagram first if it is complicated.
Cheers,
Jay Steele
Xradia Corporation
> I am a student working at the Indiana Univeristy Center for the Exploration of Energy and Matter. Recently, a collegue and I have been tasked with using the EPICS sequencer to cycle some magnets. However, neither of us are at all familiar with using state notation language. Our setup is this: we have a computer with a virtual machine on it that contains EPICS and the sequencer. We do all of our work from a different machine that runs Red Hat Linux. Using that machine, we ssh into the EPICS virtual machine. While I have read a couple State Notation Language tutorials, I am still unclear on some key concepts. What I would most like to know is how to start from nothing and make a program that does nothing more than print the text "Hello World". I think what confuses us most is how to go from a file named "HelloWorld.st" to something we can actually execute. At least for now, lets assume that all of the relevant compilers are successfully installed on the EPICS virtua!
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Eric Norum
Sent: Thursday, June 16, 2011 11:08 AM
To: Bradley Pietrzak
Cc: [email protected]
Subject: Re: Creating a Simple EPICS Sequencer Program
The example IOC template includes a sequencer program. I suggest that you use that as a starting point:
makeBaseApp -t example example
makeBaseApp -t example -i example
then edit configure/RELEASE and set SNCEQ
then 'make' and you should have a runnable IOC with an operational sequencer.
On Jun 16, 2011, at 10:47 AM, Bradley Pietrzak wrote:
> Hello,
>
The information in this email, including any attachments, is confidential and intended only for the recipient(s) listed. Any use of this email for any other purpose is prohibited. If you have received this email in error, please notify me immediately by reply email, delete this email, and do not disclose its contents to anyone.