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: Waveforms in Archiver Appliance |
From: | John Dobbins via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, "Shankar, Murali" <mshankar at slac.stanford.edu> |
Date: | Fri, 22 Apr 2022 14:27:47 +0000 |
Murali,
Thanks. More investigation revealed the time values I was providing in the request were off by four hours. GMT?
It does indeed work.
I need to read the docs again, it's been a while.
John
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Shankar, Murali via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, April 22, 2022 10:25 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Re: Waveforms in Archiver Appliance
I tried fetching a waveform with "R2020a (9.8.0.1323502) 64-bit (glnxa64)" and it works for me so I think getting waveforms into Matlab should be supported.
>> dat = load('temp.mat')
>> try
header = dat.header;
data = "">
catch
fprintf('Could not get data from file\n');
return
end
>>
>> header
header =
struct with fields:
source: 'Archiver appliance'
pvName: '....:VOLT_BUFFER_RBV'
from: '2022-04-21T13:15:00.000Z'
to: '2022-04-21T13:15:10.000Z'
>> data
data ="">
struct with fields:
epochSeconds: [2x1 int64]
values: [2x1000 double]
nanos: [2x1 int64]
isDST: [2x1 uint8]
Have you tried using curl to check the size of the file you get back to make sure there is data in the time frame you are looking for?
curl -s "https://.../retrieval/data/getData.mat?pv=...:VOLT_BUFFER_RBV&from=2022-04-21T13:15:00.000Z&to=2022-04-21T13:15:10.000Z" | wc
3 41 1194
Regards,
Murali
|