Subject: |
RE: write failure occuring in writeScanRecInProgress function (afterwriting header) in saveData.c (sscan-2-6-6 module) |
From: |
"Mark Rivers" <[email protected]> |
To: |
"Jay Steele" <[email protected]>, <[email protected]> |
Date: |
Tue, 2 Nov 2010 17:40:39 -0500 |
Hi Jay,
What makes you think there is actually a problem? The only indication I see of a problem is this line:
saveData: stat returned -1 for filename '/data/Nov-1-2010/test_0008.mda'; errno=3145730
But after that I see messages that look like success, and your screen shot looks to me like it is working, it is up to scan 4.
I think that message above may just be when it is checking to see if the file already exists?
Mark
________________________________
From: [email protected] on behalf of Jay Steele
Sent: Tue 11/2/2010 5:01 PM
To: [email protected]
Subject: write failure occuring in writeScanRecInProgress function (afterwriting header) in saveData.c (sscan-2-6-6 module)
Hi EPICS tech-talk,
I'm having a problem executing my first simple 1D scan here at XRadia. I set up the scan as simply as I could - with one positioner and one data source (SIS 3820 board with input to channel #9 from a signal generator). I am using TPMAC records (e.g., bkgfix1pcs_scanrec_v3.db and AssyGeneric_scanrec_v3.db to set up records) for the positioner. I verified that the SIS 3820 record works to count the pulses from the signal generator, and also that I can move the motor simply by setting 21:D3:BNP:XY:PX:RqsPos. I start the scan and the vxWorks terminal reports the following (with debug_saveData =10, debug_saveDataMsg=10) and keeps trying to write to the scan file without success. Attached is a screen shot of the MEDM interface for the scan. I'm using epics-3-14-11 with VxWorks and compiling with cygwin on windows-x86.
saveDataTask: MSG_SCAN_PXNV, ix=0, val=2.000000
21:D3:BNP:scan1 MSG_SCAN_PXNV(2)= 0.000000
saveDataTask: MSG_SCAN_PXNV, ix=0, val=0.000000
21:D3:BNP:scan1 MSG_SCAN_PXNV(0)= 0.000000
saveDataTask: MSG_DESC, val=
MSG_DESC()= 0.000000
nb_scan_running=1
saveDataTask: MSG_SCAN_DATA, val=0
proc_scan_data(21:D3:BNP:scan1):entry:pmsg->val=0
scan started: 21:D3:BNP:scan1
Checking number of valid positioner
Checking number of valid detector
Checking number of valid trigger
Outermost scan
proc_scan_data(21:D3:BNP:scan1):New file
saveData: stat returned -1 for filename '/data/Nov-1-2010/test_0008.mda'; errno=
3145730
saveData:writeScanRecInProgress: Opening file '/data/Nov-1-2010/test_0008.mda'
saveData:writeScanRecInProgress: Writing file header
saveData:writeScanRecInProgress: scan_dim=1
saveData:writeScanRecInProgress:(21:D3:BNP:scan1) scan_dim=1, dims_offset=0
saveData:writeScanRecInProgress: File Header written
saveData:writeScanRecInProgress: Writing per-scan header
saveData:writeScanRecInProgress: Save scan info
saveData:writeScanRecInProgress: Pos[0] info
saveData:writeScanRecInProgress: Det[0] info
saveData:writeScanRecInProgress: Trg[0] info
saveData:writeScanRecInProgress: Allocate space for Pos[0]
saveData:writeScanRecInProgress: Allocate space for Det[0]
saveData:writeScanRecInProgress:(21:D3:BNP:scan1) scan_dim=1, dims_offset=0
From this output, I tracked the problem down to a write failure in the writeScanRecInProgress function in saveData.c. This occurs after the function writes out the file header and allocates space for Pos[0] and Det[0].
I'm confused why there would be a write failure at this point. Can anybody determine from this problem what might be wrong with my setup to cause this problem?
Thanks,
Jay Steele
XRadia Corporation
________________________________
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.
- Replies:
- RE: write failure occuring in writeScanRecInProgress function (afterwriting header) in saveData.c (sscan-2-6-6 module) Jay Steele
- References:
- write failure occuring in writeScanRecInProgress function (after writing header) in saveData.c (sscan-2-6-6 module) Jay Steele
- Navigate by Date:
- Prev:
Re: monitors received out of order Ben Franksen
- Next:
RE: write failure occuring in writeScanRecInProgress function (afterwriting header) in saveData.c (sscan-2-6-6 module) Jay Steele
- 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
- Navigate by Thread:
- Prev:
write failure occuring in writeScanRecInProgress function (after writing header) in saveData.c (sscan-2-6-6 module) Jay Steele
- Next:
RE: write failure occuring in writeScanRecInProgress function (afterwriting header) in saveData.c (sscan-2-6-6 module) Jay Steele
- 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
|