EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  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  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Channel Archiver | Matlab
From: John Dobbins <[email protected]>
To: Eric Berryman <[email protected]>
Cc: [email protected]
Date: Fri, 03 Aug 2007 16:16:05 -0400
Eric Berryman wrote:
Hello!

I'm having some problems with the Matlab part of the Channel Archiver.
 Everything compiles (mex) fine in the /Matlab directory (make
matlab), but when any of the matlab commands are executed in matlab
(example: ml_arch_plot), I receive the following error:

??? Invalid MEX-file
'/opt/epics/extensions/src/ChannelArchiver/Matlab/O.linux-x86/ArchiveData.mexglx':
libdbStaticHost.so: cannot open shared object file: No such file or
directory.

The file libdbStaticHost.so is in
/opt/epics/base-3.14.9/lib/linux-x86/ as would be expected.

Has anyone else run into this problem?

Thank you!
Eric Berryman

Cyclotron Controls Engineer
National Superconducting Cyclotron Laboratory
Michigan State University

I also had trouble getting the Matlab mex files to build and work however I realized one can use Matlab along with the archiveviewer.jar file to access Archiver data (no mex files required). Example Matlab session follows (this is localized so you will need to make some changes).


***************************************

>> javaaddpath(fullfile(matlabroot,'work','archiveviewer.jar'))

>> client = epics.archiveviewer.clients.channelarchiver.ArchiverClient();

>> client.connect('http://ees101/archive/cgi/ArchiveDataServer.cgi', []);

>> client.getServerInfoText()

ans =

http://ees101/archive/cgi/ArchiveDataServer.cgi
Server version: 0
----------------------------------------
Description
Channel Archiver Data Server V0,
built Dec  7 2005, 10:04:55
from sources for version 2.6.0
Config: '/mnt/disk1/www/html/archive/serverconfig.xml'
----------------------------------------
Methods
average
linear
plot-binning
spreadsheet
raw


>> x = client.getAvailableArchiveDirectories()


x =

epics.archiveviewer.ArchiveDirectory[]:
    [epics.archiveviewer.clients.channelarchiver.ArchiveInfo]



>> x(1).getName

ans =

Room128

>> y = client.search(x(1), 'gun_hv_volt_rdbk', [])

y =

epics.archiveviewer.AVEntry[]:
    [epics.archiveviewer.clients.channelarchiver.CAEntry]


>> z = client.getAVEInfo(y(1))


z =

epics.archiveviewer.AVEntryInfo@86359


>> start_t = z.getArchivingStartTime()


start_t =

1.1685e+012

>> end_t = z.getArchivingEndTime()

end_t =

1.1713e+012

>> r = client.getRetrievalMethod('linear')

r =

linear

>> req_obj = epics.archiveviewer.RequestObject(start_t, end_t, r, 1000)

req_obj =

epics.archiveviewer.RequestObject@80000003

>> data = client.retrieveData(y, req_obj, [])

data =

epics.archiveviewer.ValuesContainer[]:
    [epics.archiveviewer.clients.channelarchiver.NumericValuesContainer]

.

>> data(1).getNumberOfValues()

ans =

248

>> data(1).getValue(1)

ans =

[0.0]

>> data(1).getValue(2)

ans =

[0.0]

>> data(1).getValue(3)

ans =

[176.269315853876]

>> data(1).getTimestampInMsec(3)

ans =

1.1685e+012

>>








References:
Channel Archiver | Matlab Eric Berryman

Navigate by Date:
Prev: Channel Archiver | Matlab Eric Berryman
Next: Re: Channel Archiver | Matlab Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Channel Archiver | Matlab Eric Berryman
Next: Re: Channel Archiver | Matlab Kay-Uwe Kasemir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·