Download Integration of a Data Acquisition System Based On FlexRIO
Transcript
Chapter 5. Integration of NI-6581+NI PXIe-7965R in CODAC Core System 32 to the resources and functionalities found in the FPGA. This driver is developed as a library and it is added to this EPICS IOC application to control the hardware of the developed DAQ system. The main schema of the aforementioned process is depicted in figure 5.1. 5.1.1 CoreDAQ-Rules The minimal unit implemented having the mandatory requirements is the CoreDAQ. The following rules have to be followed to interact to the hardware from an EPICS IOC application. • Nomenclature for FPGA registers and resources: The NI C API Generator generates the C header file containing the information to access to the hardware in the FPGA with the same names of the LabVIEW FPGA controls, indicators, and DMA FIFOs; the aforementioned driver seek these elements if they follow an specific nomenclature. 1. Names of elements with no indexed postfix: Global elements of the DAQ system, e.g. DAQStartStop, DeviceTemp, DMAsOverFlow, etc. 2. Names of elements with indexed postfix: When more than one elements of the same type exist, e.g. three digital inputs: DI0, DI1, and DI2. • Mandatory registers and resources: There are some mandatory resources to build the CoreDAQ 1. Mandatory information Registers: Divided into two subcategories attending at the moment that the driver seek them, ones read in the initialization process, e.g. total number of channels for the data acquisition, and others checked at runtime, e.g. status flags for FIFO overflow. 2. Mandatory control registers: Registers used to configure and control the CoreDAQ in runtime, e.g. control to start and stop the acquisition. 3. Mandatory resources: These consist on FIFO DMAs, used to transfer the acquired data from the FPGA to the host. • Extra functionalities of the CoreDAQ: Extra functionalities can be implemented depending on the requirements of the scientist, e.g. data preprocessing in the CoreDAQ For more information about this see [1].