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: write failure occuring in writeScanRecInProgress function (after writing header) in saveData.c (sscan-2-6-6 module) |
From: | Jay Steele <[email protected]> |
To: | Tim Mooney <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Tue, 2 Nov 2010 16:44:14 -0700 |
Hi Tim,
After reviewing saveData.c, I realize that PREFIX_SIZE is set to 10, and I'm using the prefix "21:D3:BNP:". I guess that the leading ":" is being dropped off, so the record names set by saveData don't match the
actual record names. This explains the following message I get after saveData_Init().
saveData: Can't connect to some or all retry PVs
I think this explains why the scan is failing to write out the records.
Why do we need to have such a short prefix (PREFIX_SIZE = 10) for saveData? Can I just increase PREFIX_SIZE and recompile?
Thanks,
Jay Steele
From: Jay Steele
Sent: Tuesday, November 02, 2010 3:51 PM To: Tim Mooney Cc: [email protected] Subject: RE: write failure occuring in writeScanRecInProgress function (after writing header) in saveData.c (sscan-2-6-6 module) Hi Tim,
The function is exiting out of this block of code (I added the printf("write failed\n") line).
****************************************************************
if (pscan->old_npts < pscan->npts) {
writeFailed |= !xdr_setpos(&xdrs, pscan->dims_offset); Debug3(2, "saveData:writeScanRecInProgress:(%s) scan_dim=%d, dims_offset=%ld\n", pscan->name, pscan->scan_dim, pscan->dims_offset); if (writeFailed) { printf("write failed\n"); goto cleanup; } lval = pscan->npts; writeFailed |= !xdr_long(&xdrs, &lval); } *****************************************************************
Cheers,
Jay Steele
From: Tim Mooney [[email protected]] Sent: Tuesday, November 02, 2010 3:47 PM To: Jay Steele Cc: [email protected] Subject: Re: write failure occuring in writeScanRecInProgress function (after writing header) in saveData.c (sscan-2-6-6 module) Jay,
The next thing saveData wants to do, after the last message you've shown, is to call xdr_setpos(), and I'm pretty sure this will be its first call to xdr_setpos() for the file. I'll guess xdr_pos() is returning an error (zero). Can you check to see if this is true? Tim Mooney Jay Steele wrote:
-- Tim Mooney ([email protected]) (630)252-5417 Software Services Group (www.aps.anl.gov) Advanced Photon Source, Argonne National Lab 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. |