Download Programmer`s Manual PIXIE-4
Transcript
1 Overview This manual is divided into three major sections. The first section is a description of the PIXIE-4 application program interface (API). Advanced users can build their own user interface using these API functions. The second section is a reference guide to program the PIXIE-4 modules using the PIXIE-4 API. This will be interesting to those users who want to integrate the PIXIE-4 modules into their own data acquisition system. The third section describes those user accessible variables that control the functions of the PIXIE-4 modules. Those advanced and curious users can use this section to better understand the operation of the PIXIE-4. Additionally, this manual also includes instructions on how to write User DSP code. 2 PIXIE-4 API The PIXIE-4 API consists of a set of C functions for building various coincidence data acquisition applications. It can be used to configure Pixie-4 modules, make MCA or list mode runs and retrieve data from the Pixie modules. The API can be compiled as a WaveMetrics Igor XOP file which is currently used by the Pixie-4 Viewer, a dynamic link library (DLL) or static library to be used in customized user interfaces or applications. In order to better illustrate the usage of these functions, an overview of the operation of Pixie-4 is given below and the usage of these functions is mentioned wherever appropriate. At first the PIXIE-4 API needs to be initialized. This is a process in which the names of system configuration files and variables are downloaded to the API. The function Pixie_Hand_Down_Names is used to achieve this. The second step is to boot the Pixie modules. It involves initializing each PXI slot where a Pixie module is installed, downloading all FPGA configurations and booting the digital signal processor (DSP). It concludes with downloading all DSP parameters (the instrument settings) and commanding the DSP to program the FPGAs and the on-board digital to analog converters (DACs). All this has been encapsulated in a single function Pixie_Boot_System. Now, the instrument is ready for data acquisition. The function used for this purpose is Pixie_Acquire_Data. By setting different run types, it can be used to start, stop or poll a data acquisition run (list mode run, MCA run, or special task runs like acquiring ADC traces). It can also be used to retrieve list mode or histogram data from the Pixie modules. After checking the quality of a MCA spectrum, a Pixie user may decide to change one or more settings like energy filter rise time or flat top. The function used to change Pixie settings is Pixie_User_Par_IO. This function converts a user parameter like energy filter rise time in µs into a number understood by the Pixie hardware or vice versa. Another function, Pixie_Buffer_IO, is used to read data from DSP’s internal memory to the host or write data from the host into the internal memory. This is useful for diagnosing Pixie 1 PIXIE-4 Programmer’s Manual V1.41 XIA 2007. All rights reserved.