Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Canberra CNF Spectrum File Convert ? !

  1. Dec 13, 2006 #1
    I want to convert canberrra CNF spectrum file to ASCII file.
    I found a program (IAEA, Winspedac) for converting, but program needed sad.dll file. :confused:

    Please help me. :cry:

    Thanks a lot.
  2. jcsd
  3. Dec 13, 2006 #2


    User Avatar
    Staff Emeritus
    Science Advisor

  4. Jan 28, 2007 #3

    I recently registered and this is my first post.
    I have a single .exe that converts .cnf to ascii spectrum file if anybody is interested. It is written in assembler (FASM) and has a few custom extras but I could simplify or adapt it if required.


    PS Don't tell Canberra Industries!
  5. Jan 21, 2008 #4
    Hi Chris,

    I desperately need something to convert my .cnf spectra into ascii so I would be very interested to try your .exe file.


  6. Feb 16, 2008 #5
    I will see if I can dig it up and send it to you when I get back to work. I havn't used it for a few years so no guarantees it still works for recent .cnf files.

  7. Feb 16, 2008 #6
    OK here it is. It will ask for a .cnf file name and then ask for a .tka file name. The .tka file will be spat out hopefully. .Tka format is an ASCII format with the counts for each channel as a separate line. My program will ask for a "gamma" or "alpha" file. Gamma will expect a 2048 channel .cnf file and alpha will expect a 1024 channel .cnf file. If you have have a different number of channel then the program won't work. However, I can easily change it if you wish.
    I cannot gaurantee it to work in all cases because the spectrum itself is buried inside the .cnf file in various locations. There is an algorithm to find the location but only works for the cases of .cnf files that I encounter. Yours may be different.

    The Genie2K will also do much the same thing and probably more robustly if you do a "save as" and save as a toolkit file. However, the first two channels are reversed for some reason. The first two channels should be the actual counting time and the live time.

    Attached Files:

  8. Mar 26, 2008 #7
    I want to advice you "FitzPeaks Gamma Analysis Software" (You can download it at http://www.jimfitz.demon.co.uk/fitzpeak.htm). It's freeware and it allow to convert spectra from a variety of different manufacturer's systems including Genie (.cnf) file format to ASCII and others.
  9. Jul 15, 2008 #8
    I need help in getting the comments included in the Genie2K Sample info section. We entered some data there, however, this data is not readable even in FitzPeaks package. Is it possible to read this data from a 16K gamma spectrum.
  10. Jul 16, 2008 #9
    The file could be corrupted if you can't read it by Genie2K. If so, or otherwise, you could try to read the file into a file editor. Somewhere in there your comments should be readable, if you look hard enough, because the comments should be readable ASCII characters.


  11. Jul 16, 2008 #10
    Thank you very much, We could retrieve the information.
  12. Jul 21, 2009 #11
    I ran across this format and managed to write a python script to extract data from it. The attached zip includes the script as well as a slightly woolly description of the file format.

    Hope this helps someone in the future.

    Attached Files:

  13. Mar 23, 2010 #12
    Hi ChrisLeslie,

    I am running into the same problem as others trying to convert .cnf files to ascii files. We are using 4096 channels and would like to know if we could use your .exe file. Thanks a bunch :-)
  14. Jun 9, 2011 #13
    that's a great help! thanks

  15. Mar 30, 2012 #14
    did somebodyused the Dataaccess.dll in C++ to access tom CAM files
  16. May 20, 2012 #15
    Recently I was asked to implement reading of this CNF format.
    I've found a very nice program that can read it - FitzPeaks, mentioned in this thread, and wrote email to Jim Fitzgerald who is the author of FitzPeaks. He sent me his code (thank you!) and basing on this code I've added this format to my xylib library. I completely rewrote the code, so I may have introduced some bugs.

    The Python code by splondike was also useful, but it reads only one specific version of CNF.

    If anyone is interested, source and Windows binaries (simple converting program) are at: xylib.sf.net
    (I'm not allowed to post a link, because it's my first post here).

    This library with simple converter (xyconv) are also included in Debian, Ubuntu, Fedora and other Linux distros, but it will take some time until distro maintainers update their version. Canberra CNF has been added in xylib 0.9.
  17. Jun 8, 2012 #16
    Hallo GENIE2000 users,

    I use Alpha-Analyst and Im glad that I found some adresses in my cnf-files, which enables me to open it using MS-Excel (VBA-Macro).

    Those parameters as:

    -livetime,realtime,preset im msec
    -Date of measurement
    -sample title, sample ID, sample name, 3 lines sample description, detector ID, unit
    -calibration polynom values (offset, slope, slope^2, slope^3)
    -1024 K channel data (may be different in gamma specs)

    best regards
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook