XIA Pixie-32 Скачать руководство пользователя страница 24

Pixie-32 User Manual

Version 0.2  

 

S32 status = P32_SysConfig (char *config_filename); 

Description: 

Read configuration file, pass variables to C-library. 

Must

 be called prior booting or accessing 

hardware. 

Calling Parameters: 

config_filename

 configuration file name (relative or absolute path). This text file should contain at 

least 5 lines, being: 

FPGA firmware file path (relative or absolute). Usually 

../Firmware/pixie32.bin 

FPGA parameters file path base name. Usually 

../Configuration/FipRegs

. With this path, 

library is expecting to find files 

../Configuration/FipRegs_m##.txt,

 where ## is module 

number 

Cassis number (in 0 to 3 range, decimal) 

Debug printout verbosity level, decimal integer. Bit 0 set prints debug messages during 
boot (if bit 0 is not set, only errors during boot will be reported). Bit 1 set prints debug 
messages during data acquisition (if bit 1 is not set, only errors will be reported). Normally 
1. 3 for debugging and highest verbosity. 

Bit 2 is a switch to user-provided interrupt service routine: when bit 2 is set, 
pointer to this ISR is passed via Pixie_Acquire_Data(0x1500) 

Serial number of module 0, decimal integer 

Serial number of module 1, if present, 

... and so on, for all the modules in the chassis. 

Devices are enumerated according to order in which they are entered in the configuration file. 
Also, it is always possible to match device number (ModNum) and device serial number use 
PIXIE500E_GetModuleSerialNumber(ModNum). 

There should not be empty lines. (Though, first 4 lines can have comments after '#') 

Return Parameters: 

Status 

is a code which indicates an error in opening or structure of the configuration file (negative 

status

 value), or number of modules that are expected to be installed (positive 

status

 value). 

API Function: Pixie_Boot_System 

Syntax 

S32 status =

  

Pixie_Boot_System (uint16 Boot_Pattern, uint8 ModNum); 

Description: 

Use this function to boot one or all Pixie-32 modules in the chassis. Before booting the modules, it 
scans all PXIe crate slots and finds the address for each slot where a Pixie-32 module is installed. 
If number of located modules matches the list of serial numbers recorded in the configuration file, 
FPGA can be booted and/or initialized, using files defined in the configuration file. Expects that 
P32_SysConfig has already been executed. This function has to be called before any hardware 
access (i.e. calling Pixie_Acquire_Data()). 

Calling Parameters: 

© 2017 XIA LLC

24 

Содержание Pixie-32

Страница 1: ...rnished by XIA LLC is believed to be accurate and reliable However no responsibility is assumed by XIA for its use or for any infringements of patents or other rights of third parties which may result...

Страница 2: ...b 10 Start 10 Stop 11 Statistics 12 Analysis 12 Appendix 16 Initialization file format 16 Configuration file format 16 List mode data format 19 Statistics file format 20 API functions 21 API Function...

Страница 3: ...ty a to repair damage resulting from attempts by personnel other than XIA LLC representatives to repair or service the product or b to repair damage resulting from improper use or connection to incomp...

Страница 4: ...ms in this font denote text or characters that you enter from the keyboard sections of code file contents and syntax examples Setup exe refers to a file called setup exe on the host computer window Te...

Страница 5: ...32 modules installed in the host computer and or chassis If the modules are installed ignore attempts by Windows to install drivers until step 7 NI controllers come with a multi CD package called Devi...

Страница 6: ...y installed as Pixie32 along with WinDriver under Jungo devices and have no resource conflicts 7 If kernel driver WinDriver and device driver Pixie32 need to be installed manually change in Drivers am...

Страница 7: ...ie32 py p32 ini Note that some operations can be applied to all modules at one boot configure run start run stop adjust offsets if All modules checkbox by the module list is marked Same operations can...

Страница 8: ...2 Configure tab Prior to performing any operations with the instrument FPGA must be booted with correct firmware file and internal FPGA registers initialized with user provided parameters Locations o...

Страница 9: ...ecessary in offline mode Not needed if instrument has been already booted just restarting the viewer software Configure Read in configuration file check parameter values apply them to the hardware Nee...

Страница 10: ...d trigger threshold must be adjusted so the events are recorded with reasonable dead time TraceMode when set to 3 trace is captured With other values only event headers are recorded QDCEnable when set...

Страница 11: ...un time in seconds is displayed in Time s text box When checkbox near Time is checked run time is set by preset time entered in the text box and during run is counting down Stop Stop data acquisition...

Страница 12: ...d Input Counting Rate Output Counting Rate Dead Time for selected module for all 32 channels Data is recorded in base_name s file for format description see below The statistics is also automatically...

Страница 13: ...n the current directory outputting event information into base_name b _TS txt file If the binary file has already been parsed the base_name b _TS txt file has been generated the time consuming parsing...

Страница 14: ...selected event is displayed in the event window along with recorded if configured so trace After binary file is successfully parsed MCA button is enabled and it opens window displaying time stamps vs...

Страница 15: ...Pixie 32 User Manual Version 0 2 2017 XIA LLC 15...

Страница 16: ...guration file format Filename should be in Configuration_base_name _m txt format is module number separate file for each module where Configuration_base_name is FipRegs by default but can be anything...

Страница 17: ...constraint concerning the sum value of the two trigger filter parameters 2 ShortFastLength ShortFastGap 63 ShortFastThreshold This is the threshold used by the trapezoidal trigger filter short in the...

Страница 18: ...TraceDelay 1016 PreampTau Sets preamplifier exponential decay time constant in microseconds BLScale The Pixie 32 measures baselines continuously and effectively extracts DC offsets from these measurem...

Страница 19: ...um Note the constraint 1 QDC1Len 32767 QDC2Len Sets the length of the third QDC sum Note the constraint 1 QDC2Len 32767 QDC3Len Sets the length of the fourth QDC sum Note the constraint 1 QDC3Len 3276...

Страница 20: ...for AS Valid range 0 floating point Filter_BW Setting per ADC channel i e only 4 entries Sets the 3 dB attenuation frequency for the antialiasing filter 0 14 MHz 1 10 MHz 2 7 5 MHz Coarse_Gain Settin...

Страница 21: ...recorded by the signal processing FPGA EVTTIME_LO 31 0 2 31 30 16 15 0 Bits 15 0 event time upper 16 bit of the 48 bit timestamp bits 30 16 trace start address unused bit 31 event finish code 0 good e...

Страница 22: ...31 28 27 16 15 12 11 0 Packing of ADC Data 2 and 3 Not used ADC Data 3 Not used ADC Data 2 Statistics file format Currently reported statistics registers livetime fast peaks number of events 2 32 bit...

Страница 23: ...statistics file and file_name b list mode file Read only parameters are set to 1 API functions Description of implemented API functions available to user P32_GetAPIVersion get version of library P32_...

Страница 24: ...e 0 decimal integer Serial number of module 1 if present and so on for all the modules in the chassis Devices are enumerated according to order in which they are entered in the configuration file Also...

Страница 25: ...r indicating the status of the function call 0 success negative error API Function Pixie_Acquire_Data Syntax S32 status Pixie_Acquire_Data uint16 Run_Type uint32 User_Data char file_name uint8 ModNum...

Страница 26: ...e the following functions rows given the desired operational mode columns Operation Run_Type Start run 0x1500 Stop run 0x3500 Read statistics 0x4500 Acquire ADC traces 0x4 Adjust DC offsets 0x83 All r...

Страница 27: ...s_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...

Страница 28: ...ts serial number Calling Parameters U8 ModNum 0 based module number 0 15 for these chassis Return Parameters U32 serial_number 32 bit decimal integer serial number actually only 16 lower bits are vali...

Отзывы: