Controlling the Genie Sequence Analyzer w/ the Genie 2K Programming Library

AI Thread Summary
Users are discussing the challenges of using the Genie 2000 Programming Library to control the Sequence Analyzer for tasks like peak locating and area computation. Despite the Analyze method returning S_OK and indicating successful execution, the report file is not being generated or found on the system. A user shared a code snippet that successfully retrieves peak area data directly from the analysis, bypassing the report generation issue. The discussion highlights the frustration with the API's inability to produce reports, especially when other programs can generate them from the same data file. Ultimately, users are finding alternative ways to extract necessary data without relying on the report feature.
wrdieter
Messages
6
Reaction score
0
Has anybody written programs that call the Genie 2000 SequenceAnalyzer object from the Genie 2000 Programming library?

I am trying to do a peak locate, followed by a peak area computation, then write the results to a report file. The Analyze method says the sequence executes without problems (it returns S_OK), and it claims to have executed all 4 steps in the sequence. I specified a full path to the report file and asked Analyze to generate a report, but I cannot find the report file anywhere on my system.

My code is written in MS Visual Studio 2008 C++. The actual call looks like this:

seqAnalyzer->Analyze(dataAccess, &step, bsName, VARIANT_FALSE,
VARIANT_FALSE, VARIANT_FALSE, VARIANT_TRUE, rptName, NULL);

Thanks,
Bill.
 
Engineering news on Phys.org
I still cannot get Genie2K to produce the report, but I have found out how to get the information out. In case anyone is interested, here is how to get the peak area of all of the peaks (leaving out all error checking for clarity):

Code:
long nPeaks;
float *peakArea;
dataAccess->get_NumberOfRecords(DataAccess::CAM_CLS_PEAK, (DataAccess::ParamCodes)0, &nPeaks));
peakArea = new float[nPeaks];
for (int peak = 1 ; peak <= nPeaks ; ++peak) {
[INDENT]dataAccess->get_Param(DataAccess::CAM_F_PSAREA, peak, 0, &result);
peakArea[peak] = result.fltVal;
[/INDENT]
}

The get_NumberOfRecords method retrieves the number of peaks found in the analysis, then the for loop reads the parameter associated with the area of each peak using get_Param. Other peak properties listed near CAM_F_PSAREA in the manual can be extracted similarly.

I still cannot get the API to generate the report. The analyze batch command and Gamma Acquisition & Analysis programs both generate reports for the same .ASF file. What I really wanted were numbers in the report to use elsewhere in my program. Now that I can get them more directly, I do not care so much...
 
Hello everyone, I am currently working on a burnup calculation for a fuel assembly with repeated geometric structures using MCNP6. I have defined two materials (Material 1 and Material 2) which are actually the same material but located in different positions. However, after running the calculation with the BURN card, I am encountering an issue where all burnup information(power fraction(Initial input is 1,but output file is 0), burnup, mass, etc.) for Material 2 is zero, while Material 1...
Back
Top