![XIA Pixie-32 Скачать руководство пользователя страница 27](http://html1.mh-extra.com/html/xia/pixie-32/pixie-32_user-manual_3334978027.webp)
Pixie-32 User Manual
Version 0.2
●
Pixie_Acquire_Data(0x3500, NULL, "file_name.bin", 0)
: stop data
acquisition. When using Custom ISR, user is required to close the output file. To make sure that
all data processed by FPGA is transferred, FPGA is automatically flushing data path with zeros
(thus the binary output file might contain zeroes at the end).
●
Pixie_Acquire_Data(0x4500, NULL, “file_name.bin", 0)
: read out statistics.
After each readout statistics is written to
file_name.s
## file. Statistics registers contents for each
channel need to be combined in physical values. This operation is done automatically when run is
stopped.
●
Pixie_Acquire_Data(0x83, offsets_ptr, “”, 0)
: only for single module; ramp
input DAC, find DC offsets for each channel, corresponding to 10% of ADC range, and set DC
offsets to that value. The obtained values are also returned to user in a 32-element array of 32-bit
integers, which user has to preallocate, and provide its address as
offsets_ptr
. GUI also writes the
offsets values in
adjust_offsets_m##.txt
file
●
Pixie_Acquire_Data(0x4, traces_ptr, “”, 0)
: only for single module; force
trigger and capture 2000-sample waveform for each channel. Waveform data is returned to user
via
traces_ptr
, an array of 32-bit integers. 1000 32-bit words (each word is two 16-bit waveform
samples) for trace of channel 0 are followed by 1000 words for channel 1, and so on, until
channel 31.
API Function: PIXIE500E_GetNumberModules
Syntax
U8 number_modules = PIXIE500E_GetNumberModules ();
Description:
Returns number of entries device handle array in API library. Number of devices listed in the
configuration file may not match the devices registered with the C-library (device not found,
communication errors).
For testing purposes, after attempts of configuration/re-configuration of FPGA (i.e.
Pixie_Boot_System(0x2, #), call Pixie_Boot_System(0x0, 0) to force chassis scan, which would
only repopulate device handle array, so the following P500E_GetNumberModules() calls will use
up-to-date information.
Calling Parameters:
None.
Return Parameters:
number_modules
: copy of Number_Modules global variable in C-library.
API Function: PIXIE500E_GetModuleSerialNumber
Syntax
U32 serial_number = PIXIE500E_GetModuleSerialNumber (U8 ModNum);
© 2017 XIA LLC
27