Experimental Physics and Industrial Control System
|
|
Hi Jörn,
What you describe should work. I have some questions:
-
Does your specialized file format support writing more than one image to a file? Have you set the supportsMultipleArrays class variable appropriately?
-
Have you tried using Mode=Single and see if the problem persists?
-
Have you tried adding a debugging printf to the closeFile()method of your derived class to see if it is being called?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, January 6, 2026 1:34 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: NDPluginFile question
Hello,
I have implemented a new NDPluginFile class for a specialized file format the we need.
Everything works fine besides one strange thing that the last file in a series of captured streams is not closed.
I want to take 100 images, each in a separate file. Therefor I set the # Captures to 1 and set the Mode to Stream.
If I now click Capture, a new file is created for the next image, the Next file # get incremented and the capture finishes.
If I now try to open the file its not yet possible to read it because its not closed yet.
Reading thru the code of NDPluginFile.cpp I believe that the file should be closed by calling closeFileBase which calls closeFile of my derived class.
Is that the expected behavior?
Regards
Jörn
|
- Replies:
- Re: NDPluginFile question Jörn Dreyer via Tech-talk
- References:
- NDPluginFile question Jörn Dreyer via Tech-talk
- Navigate by Date:
- Prev:
NDPluginFile question Jörn Dreyer via Tech-talk
- Next:
The problem of converting floating-point numbers to 4-byte format (in CDAB order) under StreamDevice 高振华 via Tech-talk
- 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
<2026>
- Navigate by Thread:
- Prev:
NDPluginFile question Jörn Dreyer via Tech-talk
- Next:
Re: NDPluginFile question Jörn Dreyer via Tech-talk
- 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
<2026>
|
|
ANJ, 19 Mar 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|