EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Listing channels
From: "Mark M. Ito" <[email protected]>
To: David Dudley <[email protected]>
Cc: [email protected]
Date: Thu, 08 May 2008 08:55:38 -0400
For what it is worth, I've attached an expect script that makes a listing of records for a given ioc. Brute force. Stop gap. Etc.

David Dudley wrote:
Got 3 little questions:

1. Is there a method or application anywhere that can generate a list of
the channels on a remote IOC? I mean, a program I can point at the
IOC's address and have it generate a list of all the channels on that
unit?


2. Does SDDS require X in order to compile?  It's a given that SDDSPlot
is probably going to need X, but most of the apps don't have GUI's, so
must X be available in order to compile them?  If not, how do you
generate the non-X programs?

3. Is there a program that will extract a portion of an SDDS file?  In
order to use SDDS for archiving (which it looks like it might be very
useful for), it's going to have to run forever on the IOC unit.  If I
need to generate a dataset from a SDDS datafile, how do I pull out just
the period (say... everything from yesterday, midnite to midnite) from a
file that has much, much more information in it (days, weeks, or months
...)?  I can come up with stuff to cause it to restart, say once a week,
but how do I pull out a subset of information?

David Dudley

#!/bin/expect --
#
set ioc $argv
set file db_list_$ioc.txt
spawn rlogin $ioc
expect "VxWorks login:"
send "your-ioc-username-here\r"
expect "Password:"
send "your-password-here\r"
expect "your-ioc-command-line-prompt-here"
send "rm \"$file\"\r"
expect "your-ioc-command-line-prompt-here"
send "dbl > $file\r"
expect "your-ioc-command-line-prompt-here"
send "logout\r"
expect "your-host-command-line-prompt-here"
exit
#
#end of expect script
begin:vcard
fn:Mark M. Ito
n:Ito;Mark
org:Jefferson Lab
adr:Suite 8;;12000 Jefferson Avenue;Newport News;VA;23601;USA
email;internet:[email protected]
title:Staff Scientist
tel;work:757-269-5295
tel;fax:757-269-6331
tel;pager:757-584-5295
url:http://www.jlab.org/~marki
version:2.1
end:vcard


Replies:
Re: Listing channels Mark M. Ito
Re: Listing channels Matthias Clausen
References:
Listing channels David Dudley

Navigate by Date:
Prev: unsubscribe :) Heinrich du Toit
Next: Re: Listing channels Mark M. Ito
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Listing channels Noboru Yamamoto
Next: Re: Listing channels Mark M. Ito
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·