Technical Information Manual

Similar documents
Technical Information Manual

INDEX. Digitizer Software. CAENComm library CAENDigitizer library CAENDPP library WaveDump. CAEN VME Demos WaveCatcher

Technical Information Manual

Technical Information Manual

User VME DAQ. Tools Applications CUSTOM LIBRARY THAT EXPORTS CAENCOM FUNCTIONS. CAEN COMM user implemented CAEN. PCI & PCIe Controllers.

Technical Information Manual

Technical Information Manual

Technical Information Manual

Technical Information Manual

Technical Information Manual

CAEN. Electronic Instrumentation. UM2091 WaveDump User Manual. Rev April Rev June WaveDump User Manual User Manual

Readout Systems. Liquid Argon TPC Analog multiplexed ASICs SiPM arrays. CAEN 2016 / 2017 Product Catalog

Technical Information Manual

Technical Information Manual

Technical Information Manual

Introduction to VME. Laboratory for Data Acquisition and Controls. Last modified on 4/16/18 5:19 PM

Wiener-DAQ program for data acquisition with Wiener CC-USB CAMAC Controller

Technical Information Manual

Technical Information Manual

CAEN. Electronic Instrumentation. WaveDump. CAEN Digitizer Readout Application. User Manual UM2091. Rev December 22nd, Tools for Discovery

Digitizer products. VME NIM Desktop

Technical Information Manual

Technical Information Manual

OPERATOR'S MANUAL MODEL 1110 VME ADC/TDC TESTER

Technical Information Manual

Technical Information Manual

NEMbox / NIMbox Programmable NIM Module

User's Manual. Revision n October 2002 MOD. SY 3527 UNIVERSAL MULTICHANNEL POWER SUPPLY SYSTEM USER S MANUAL. NPO: 00103/01:3527y.

30/05/96 V465 User's Manual CHIMERA VERSION TABLE OF CONTENTS

Nuclear Physics Division Data Acquisition Group

Guide GD Introduction to Digitizers Rev.5 February 2014

CAEN Tools for Discovery

Digital Acquisition Instruments for Neutron Identification

Electronic Instrumentation CAEN / 2017 Product Catalog. A masterpiece from Siena, or a detector? You decide...

Electronic Instrumentation

CAEN. Electronic Instrumentation. MC2Analyzer User Manual. Software for digital Multi Channel Analyzer. User Manual UM3182

Using NCSL DAQ Software to Readout a LeCroy 4300B. Timothy Hoagland

Xilinx Answer Xilinx PCI Express Windows DMA Drivers and Software Guide

NI-DAQmx Basic Course NITS John Shannon

Technical Information Manual

Windows Device Driver and API Reference Manual

CODA Online Data Formats

FT Cal and FT Hodo DAQ and Trigger

Using NCSL DAQ Software to Readout a CAEN V792 QDC. Timothy Hoagland

Using the FADC250 Module (V1C - 5/5/14)

CAEN. Electronic Instrumentation. NIM slot 5U CERN Compliant NIM Crate. Rev July Tools for Discovery

SIS xx Firmware - Gamma. User Manual

CAEN. Electronic Instrumentation. UM2854 DT55xx Desktop HV Power Supply. Rev July Tools for Discovery

NI PCI-5153EX. Contents USER GUIDE. with Hardware Accumulation Firmware

Technical Information Manual

04 July 2000 CAMAC++ Steve Wotton

ADC ACQUISITION MODE...

AW-UE70 Firmware Update Procedure

Optical Backscatter Reflectometer 4200 (Handheld OBR) Software Development Kit (OBR4200 SDK) User Guide

Technical Information Manual

VME Data Acquisition System, ADC Read

Using NCSL DAQ Software to Readout a CAEN V775 TDC. Timothy Hoagland

PXDAC4800. Product Information Sheet. 1.2 GSPS 4-Channel Arbitrary Waveform Generator FEATURES APPLICATIONS OVERVIEW

M2i.xxxx LabVIEW Driver

Technical Information Manual

Pixie-500 Express Manual Extension Pulse Shape Analysis Functions

Ventra XDR-450/H Mobile DVR Software Manual

CAEN. Electronic Instrumentation. Rev. 9 - UM2463 GECO2020 GEneral COntrol Software for CAEN HV Power Supplies Rev. 9-4 April 2016

SIS xx Firmware - Gamma. User Manual

DCAMAPI Library for LabVIEW

Automationdirect.com. D i r e c t L o g i c M a g n e t i c P u l s e I n p u t C o p r o c e s s o r F 4-8 M P I

User s Manual. Please Read before Installation (Combustion Pressure Analysis Software)

AW-HE50 Firmware Upgrade Procedure

TMS. series SIGNUM SYSTEMS CORPORATION. JTAGjet Driver for Code Composer Studio 2.x/3.0. Installation Instructions

Chapter 12. WinGP. Chapter 12 WinGP. Otasuke GP-EX! Acquire WinGP Information or Operate WinGP from User Application 12-5.

DESIGN OF THE DATA ACQUISITION SYSTEM FOR THE NUCLEAR PHYSICS EXPERIMENTS AT VECC

ChipScope Inserter flow. To see the Chipscope added from XPS flow, please skip to page 21. For ChipScope within Planahead, please skip to page 23.

DI-148U. User's Manual. The way PC-based instrumentation should be. 8-Channel USB Data Acquisition Starter Kit. Manual Revision B

27 Designing Your Own Program

ic-mh16 Evaluation Software Software Description

Advanced NI-DAQmx Programming Techniques with LabVIEW

AFE4400 and AFE4490 SPO2 Front End Demonstration Kit. Message Communication Protocol v4.0

Chap. 18b Data acquisition

Pixie-32. User Manual. Version 0.2 July, Software Revision: 3.5.0

ADQ14-FWPD. User Guide. Author(s): Teledyne SP Devices Document ID: Classification: Public Revision: PA1 Print date:

AW-HE40 / HE65 Firmware Update Procedure

ADC Data Capture using Capture Demo and CCS Memory Browser IWR14xx/AWR14xx example. Document Version V

Technical Information Manual

Technical Information Manual

ZS-6220 Series USB-PIO Adapter

Unzip bias2.zip to the desired directory. LabVIEW's user.lib may be a good choice.

AW-UE70 Firmware Update Procedure

SIS3700 VME ECL FIFO. User Manual

Digital Detector Emulator. This is the only synthesizer of random. Your Powerful User-friendly Solution for the Emulation of Any Detection Setup

Santa Fe (MAXREFDES5#) MicroZed Quick Start Guide

ATS GS/s 8-Bit PCI Express Digitizer

1 Digital tools. 1.1 Introduction

Electronics on the detector Mechanical constraints: Fixing the module on the PM base.

DT9828. USB Powered Thermocouple Measurement Module. Key Features: Analog Input Channels

SIS1100/3100. Win Driver. Programmers Manual

Communications Library Manual

JRA1 Telescope: NI Flex RIO DAQ Labview Telescope DAQ demonstration software overview

HUNT ENGINEERING HEL_UNPACK.LIB USER MANUAL

Markus Hintermann Global Technical Marketing / Sales Manager at Micro Crystal

The ASDEX Upgrade UTDC and DIO cards - A family of PCI/cPCI devices for Real-Time DAQ under Solaris

Transcription:

Technical Information Manual Revision n. 1 28 September 2009 CAENV1x90 LIBRARY AND DEMO APPLICATION SOFTWARE

CAEN will repair or replace any product within the guarantee period if the Guarantor declares that the product is defective due to workmanship or materials and has not been caused by mishandling, negligence on behalf of the User, accident or any abnormal conditions or operations. CAEN declines all responsibility for damages or injuries caused by an improper use of the Modules due to negligence on behalf of the User. It is strongly recommended to read thoroughly the CAEN User's Manual before any kind of operation. CAEN reserves the right to change partially or entirely the contents of this Manual at any time and without giving any notice.

TABLE OF CONTENTS 1. CAEN SOFTWARE TOOLS...4 1.1. CAENV1X90 OVERVIEW...5 1.2. SYSTEM REQUIREMENTS...5 1.3. SUPPORTED BOARDS...6 2. SOFTWARE INSTALLATION...7 2.1. SOFTWARE INSTALLATION: GETTING STARTED...7 2.1.1. Software installation: Windows...7 3. SOFTWARE OVERVIEW...9 3.1. CAENV1X90 SDK...9 3.1.1. CAENV1x90 SDK: Overview...9 3.1.2. CAENV1x90 SDK: typical use...10 3.2. CAENV1X90 LABVIEW...10 4. DEMO SOFTWARES...11 4.1. DEMOS SOFTWARE: CAENV1190DEMO...11 4.1.1. CAENV1190Demo: Overview...11 4.1.2. CAENV1190Demo: Settings...11 4.1.3. CAENV1190Demo: Raw output data format...13 4.1.4. CAENV1190Demo: Parsed output data format...13 LIST OF FIGURES FIG. 1.1: CAEN SOFTWARE TOOLS STRUCTURE FOR VME BOARDS...5 FIG. 2.1: INSTALLATION FOLDER STRUCTURE...7 FIG. 2.2: PROGRAM MENU CAENV1X90 DEMO...8 FIG. 2.3: PROGRAM MENU SDK DOC AND SOURCE DIRECTORY...8 FIG. 2.4: PROGRAM MENU CVUPGRADE...8 FIG. 2.5: PROGRAM MENU LABVIEW DEMO...8 FIG. 3.1: SOFTWARE LAYERS...9 FIG. 3.2: LABVIEW VIRTUAL INSTRUMENTS FOLDER...10 FIG. 3.3: LABVIEW VI REPRESENTATION...10 LIST OF TABLES TABLE 1.1: SOFTWARE TOOLS...4 V1x90_demo_rev1.doc 13 3

1. CAEN software Tools CAEN provides software Tools for Powered Crates and Front-End/Data Acquisition Modules. Such packages include Libraries, Demos and Software tools for Windows and Linux. The packages main features are: Libraries for National Instruments LabVIEW and C/C++ Demo programs in source code C/C++ (Windows and Linux) and LabVIEW (Windows) as a starting point for the development of user-specific applications Software Tools (firmware upgrade, Module configuration...) Windows 2000/XP/Vista. and Linux supported Packages are available for FREE download at the webpage: http://www.caen.it/nuclear/software_tools.php Table 1.1: Software Tools Module Function Software Tools V1720 V1721 V1724 V1731 V1740 VX1720 VX1721 VX1724 VX1731 VX1740 V1190A V1190B V1290A V1290N VX1190A VX1190B VX1290A VX1290N V1718 VX1718 V2718 VX2718 V792 V792N V862 V965 V965A V785A V785N V1785 V775A V775N V812 V814 V895 V1495 N957 N1568B A2818 SY2791 VME8100 VME/VME64X Digitizer family VME/VME64X Multihit TDCs VME/VME64X-USB2.0 Bridge VME/VME64X-PCI Optical Link Bridge VME Multievent QDC VME Multievent Peak sensing ADC VME Multievent TDC VME Discriminators General Purpose VME Board NIM 8k Multi-Channel Analyzer NIM 16Ch Programmable Pulse Shape Amplifier & Dual CFD PCI CONET Controller TPC Readout System 8U 21 Slot VME64/64X Enhanced Crate Series CAEN Digitizer CAENV1x90 CAENVMElib CAENVMElib CAENqtp CAENdiscri CAENV1495 CAEN N957 CAEN N1568 CAEN Link CAENVMElib CAEN Link CAEN_VME8100 NIM8301 7U 12 slot smart fan unit 300/600 W Crate CAEN_NIM8301 V1x90_demo_rev1.doc 13 4

1.1. CAENV1x90 overview CAENV1x90 is a software package provided both as demo-application software set which allows an easy management of the CAENVMELib and as LabVIEW Virtual Instruments application. CAENV1x90 library provides, API s which allows to perform the most common operations, such as configuration, readout, etc., masking the lowest level details, such as registers address, access type, data size, etc. to the developer. Provided include-files (ANSI C) can be also used independently from the library; they provide all the definitions (registers address, access type, data size, registers bit mask, etc.) necessary to develop any application. Application sets shows the most common use of CAENV1x90 library for any supported board. These can be used to test the board operation and the CAENV1x90 library usage. 1.2. System Requirements CAEN V1718 USB-VME Bridge and/or CAEN A2818 PCI-CONET Board o In case of different VME controller (for example a CPU or other types of VME bridges), the user must replace the CAENVMElib with the specific I/O library or add a wrapper library, providing the functions for the VME access (essentially the single read/write access and the Block Transfer read). Windows 2000/XP/Vista or Linux kernel Rel. 2.4/2.6 with gnu C/C++ compiler Fig. 1.1: CAEN Software Tools Structure for VME Boards V1x90_demo_rev1.doc 13 5

1.3. Supported Boards V1190A 128 Channel Multihit TDC V1190B 64 Channel Multihit TDC V1290A 32 Channel Multihit TDC V1290N 16 Channel Multihit TDC VX1190A 128 Channel Multihit TDC VX1190B 64 Channel Multihit TDC VX1290A 32 Channel Multihit TDC VX1290N 16 Channel Multihit TDC V1x90_demo_rev1.doc 13 6

2. Software installation 2.1. Software installation: Getting started The following instructions will help through the module installation; 1. Download the Software Development Kit available at the product page of the supported boards described in 1.3: (for example Mod. V1190A link: http://www.caen.it/nuclear/product.php?mod=v1190a ) 2. Unzip the package on your computer; and open the CAENV1x90 folder 3. Now open folder related to Your OS (Linux/Windows) a. Windows Users shall launch the CAENdigitizerSetup-1.0.exe file b. Linux Users must install the CAENVMELib contained in the relevant folder 2.1.1. Software installation: Windows As installation of Libraries and Demos is completed the structure of the created folders will be as follows: Fig. 2.1: Installation folder structure It is then possible to access the installed packages from the program thumbnails as shown in the following figures. V1x90_demo_rev1.doc 13 7

Fig. 2.2: Program menu CAENV1x90 demo Fig. 2.3: Program menu SDK doc and source directory Fig. 2.4: Program menu CVupgrade Documentation is an html source code documentation created with Source code documentation generator tool Doxygen (see www.doxygen.org ) Fig. 2.5: Program menu LabVIew demo V1x90_demo_rev1.doc 13 8

3. Software overview 3.1. CAENV1x90 SDK 3.1.1. CAENV1x90 SDK: Overview The CAENV1x90 SDK library is written in C language, and is a middleware tool between CAENVMELib and the User application. Fig. 3.1: Software layers The library has a modular structure; it is made up by a set of files common to all boards (cvt_board_commons.h, cvt_board_commons.c, cvt_common_defs.h) and a couple of files made to measure for each board (cvt_v####.c, cvt_v####.h). Supported boards are: V1190A 128 Channel Multihit TDC V1190B 64 Channel Multihit TDC V1290A 32 Channel Multihit TDC V1290N 16 Channel Multihit TDC VX1190A 128 Channel Multihit TDC VX1190B 64 Channel Multihit TDC VX1290A 32 Channel Multihit TDC VX1290N 16 Channel Multihit TDC Common definition files (cvt_board_commons.h, cvt_common_defs.h) provide data structure, definition and API s common to all boards, such as register read/write, set and reset of registers bitmasks etc. The board definition files (cvt_v####.c, cvt_v####.h) provide data structure, definition and API s related to the board, such as registers address, access type (address modifier and data size), registers bitmask. API s and data structures extend the API s common to all boards. Source code documentation is generated with DOXYGEN ( www.doxygen.org ) V1x90_demo_rev1.doc 13 9

3.1.2. CAENV1x90 SDK: typical use All the board modules are used as follows: Obtaining a valid vme_handle using CAENVMELib (see documentation of the CAENVMELib) Module opening: cvt_v####_open( cvt_v####_data* p_data, UINT16 base_address, long vme_handle); Usage of API s of the library: cvt_v####_... all the API s of the library use as input parameter cvt_v####_data* p_data, initialised on module s opening. Module s closing: cvt_v####_close( cvt_v####_data* p_data); Release of vme_handle using CAENVMELib (see documentation of the CAENVMELib). 3.2. CAENV1x90 LabVIEW V1x90vi is a set of LabVIEW Virtual Instruments which provide the capabilities of the library described in 3.1.1. The complete set is available in the following folder Fig. 3.2: LabVIEW Virtual Instruments folder The VI representation is as follows: Fig. 3.3: LabVIEW VI representation V1x90_demo_rev1.doc 13 10

4. Demo softwares Demo softwares are applications which run on boards or board families and show the usage of the SDK. These applications can be used both as example of library usage and to test the board operation. 4.1. Demos software: CAENV1190Demo 4.1.1. CAENV1190Demo: Overview CAENV1190Demo is a command line application which shows the operation of the board family V1X90 (V1190A, V1190B, V1290A, V1190N) through the APIs exposed by CAENVMETool (cvt_v1190.h, cvt_v1190.c). CAENV1190Demo sets the board according to the provided parameters and executes read cycles from it. He readout result is released on distinguished files, both in native binary format and in interpreted text type. The execution of the various operation is displayed with its result (Ok or Error message). 4.1.2. CAENV1190Demo: Settings CAENV1190Demo can be configured via command line via a set of parameters, whose format is shown in the following: By launching the application with parameter -h, it is displayed the list of available parameters. -param_id[param_value] where: param_id: a character which identifies the parameter. param_value: value of parameter, if foreseen by the parameter itself. Notes about the parameters use: if a parameter is not provided, the default value is assumed the presentation order of the parameters is arbitrary a parameter not recognised is neglected each parameter must be separated from the others via one or more space characters the case of the parameters (id and value) is neglected. space characters must not be typed between the parameter id and value (ex. - tv1190a OK, -t V1190A WRONG) if the parameter value foresees space characters S (ex. File names or acquisition parameters), this must be enclosed between without space characters with respect to parameter id (ex -m" 1, 1, 0, -1, -1, -1, -1, 1, 0, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff") List of available parameters with relevant default value and use example: -pfilename: output filename. If not specified 'parsed_values.dat' will be assumed. example: CAENV1190Demo -p"parsed data out.dat" V1x90_demo_rev1.doc 13 11

CAENV1190Demo -Pparsed_data_out.dat -rfilename: raw output filename. If not specified 'raw_values.dat' will be assumed example: CAENV1190Demo -r"raw data out.dat" CAENV1190Demo -Rraw_data_out.dat -abase_address: the board's base address (16 bit MSW), expressed in decimal or hexadecimal format. If not specified '0x3210' will be assumed. example: CAENV1190Demo -a4660 CAENV1190Demo -A0x1234 -tv1190_type : The V1190's type. Valid values are: V1190A, V1190B, V1290A, V1290N. If not specified 'V1190A' will be assumed. example: CAENV1190Demo - tv1190a CAENV1190Demo -TV1290N -enum_events: the number of events to acquire. If not specified '-1' will be assumed. A non positive number means don't care (i.e. acquire until key pressed) example: CAENV1190Demo -e1024 CAENV1190Demo -E32768 -c"params": Continuos acquisition mode parameters. If not specified trigger matching mode will be assumed. The parameter string format is: "edge_detection, m_res_width, enable_msk[0..3]" where : o edge_detection : The edge detection type numeric value o o res_width : The resolution width numeric value enable_msk[0..3]: The channel enable pattern buffer (hex or dec value). You must provide the number of required words depending on the board type (up to 8 words). If some words are missing, the corresponding channels will be disabled. Example (for a V1190A): CAENV1190Demo -c" 2, 0, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff" CAENV1190Demo -C" 2, 0, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff" -m"params" trigger matching mode parameters. If not specified '1,1,0,-1,-1,-1,-1,1,0' will be assumed. The parameter string format is: "header_trailer_enable, empty_event_enable, trigger_time_tag_enable, window_width, window_offset, extra_search_margin, reject_margin, edge_detection, m_res_width, enable_msk[0..3]" where : o header_trailer_enable: Enable(1)/disable(0) header and trailer o empty_event_enable: Enable(1)/disable(0) empty event storage o trigger_time_tag_enable: Enable(1)/disable(0) trigger time tag o window_width: Sets the width of the match window o window_offset: Sets the offset of the match window with respect to the trigger itself o extra_search_margin: Sets the extra search field of the match window o reject_margin: Sets the reject margin, expressed in clock cycles o edge_detection: The edge detection type numeric value o o res_width: The resolution width numeric value enable_msk[0..3] : The channel enable pattern buffer (hex or dec value). You must provide the number of required words depending on the board V1x90_demo_rev1.doc 13 12

type (up to 8 words). If some words are missing, the corresponding channels will be disabled. Example (for a V1190A): CAENV1190Demo -m" 1, 1, 1, 0x14, 0xFD8, 2, 2, 2, 0, 0xffff, 0xffff, 0xffff, 0xffff 0xffff, 0xffff, 0xffff, 0xffff" CAENV1190Demo -M" 1, 1, 1, 0x14, 0xFD8, 2, 2, 2, 0, 0xffff, 0xffff, 0xffff, 0xffff 0xffff, 0xffff, 0xffff, 0xffff" -h: Shows this help screen example: CAENV1190Demo -h CAENV1190Demo -H 4.1.3. CAENV1190Demo: Raw output data format This output binary type file reports the unprocessed readout data. 4.1.4. CAENV1190Demo: Parsed output data format This text format output file report a processed version of readout data. For each 32 bit readout datum: Data type is reported The datum content is processed, single field are split and written onto file in hexadecimal format. The file format is as follows: o GLB_HDR : global header EVT COUNT : event counter GEO : geo address o GLB_TRL : global trailer STATUS : status word WCOUNT : event number of words GEO : geo address o TDC_HDR : TDC's header TDC : number di TDC EVT ID : id event BUNCH ID: bunch id o TDC_MSR : acquisition measure TRAILING : Trailing (1) or Leading (0) CH : channel datum is from MEASURE: performed measure o TDC_ERR : error TDC : number of TDC ERR_FLAGS : error flags o GLB_TRL : TDC's header TDC : number di TDC EVT ID : id event WCOUNT : number of word o TDC_TRG : error o TRG TIME TAG : The trigger time tag o FILLER : filler data V1x90_demo_rev1.doc 13 13