Download Pixie-4 Programmer`s Manual
Transcript
Pixie_Acquire_Data Syntax S32 Pixie_Acquire_Data U16 Run_Type, // U32 *User_data, // // U8 *file_name, // // U8 ModNum); // ( Data acquisition run type An unsigned 32-bit integer array containing the data to be transferred Name of the file used to store list mode or MCA histogram data The number of the Pixie module Description Use this function to acquire ADC traces, MCA histogram, or list mode data. The string variable file_name should always be specified – for start/stop poll of acquisition runs it is the filename for the data, in other cases it is the filename to be processed. In rare cases, file_name can be specified as an empty string. The unsigned 32-bit integer array User_data is only used for acquiring ADC traces (control task 0x84), reading out list mode data or MCA spectra. In all other cases, User_data can be any unsigned integer array with arbitrary size. Make sure that User_data has the correct size and data type before reading out ADC traces, list mode data, or MCA spectrum. Parameter description Run_Type is a 16-bit word whose lower 12-bit specifies the type of either data run or control task run and upper 4-bit specifies actions (start\stop\poll) as described below. Controltasks are described in detail in section 4.5. Lower 12-bit: 0x100,0x101,0x102,0x103 0x400,0x201,0x202,0x203 0x301 0x1 -> 0x7F 0x80 -> 0xFF Upper 4-bit: 0x0000 0x0000 0x0001 0x0002 0x0005 0x0006 0x0016 1 list mode runs (Pixie-4 and Pixie-500) list mode runs (Pixie-500 Express) MCA run control task runs handled by DSP control task runs handled by C library start a control task run set offset DACs1 connect inputs (Pixie-4 only) disconnect inputs (Pixie-4 only) program Fippi FPGA1 measure baselines test writing to external list mode memory Should be called after most parameter changes applied directly to the DSP (using Pixie_Buffer_IO). Automatically called after parameter changes handled by the C library (using Pixie_User_Par_IO). Pixie-4 Programmer’s Manual V3.11 14 XIA 2014. All rights reserved.