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

by wrdieter
Tags: api, canberra, genie 2000, programming
 P: 6 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): 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) {dataAccess->get_Param(DataAccess::CAM_F_PSAREA, peak, 0, &result); peakArea[peak] = result.fltVal; } 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...