Module: | DiamondBoards |
Name: | Diamond cards of data acquisition |
Type: | DAQ |
Source: | daq_DiamondBoards.so |
Version: | 1.2.5 |
Author: | Roman Savochenko |
Translated: | Maxim Lysenko |
Description: | Provides an access to "Diamond Systems" DAQ boards. Includes main support for all generic boards. |
License: | GPL |
The module provides for the system OpenSCADA support of dynamic data sources, based on the cards for data collection of Diamond Systems company( http://diamondsystems.com/ ). The module is built on the basis of the universal driver of the manufacturer of board. Universal driver is available for almost all known software platforms in the form of a library. Universal driver has been received at http://www.diamondsystems.com/support/software. The driver was included in the distribution kit of OpenSCADA, therefore, for the building of the module external libraries are not required.
The boards of data acquisition of Diamond Systems represent the modules of expansion of the PC/104 format. Boards may include: analog IO (input/outputs), digital IO, and counters. Complete set of cards can vary greatly. There can be contained only one type of IO or many others. In addition, the function of data acquisition can be given to the system boards of this company. For example, the motherboard Athena contains: 16 AI, 4 AO, 24 DIO.
The module provides support for analog and digital IO. The of analog inputs (AI) is supported in two modes: direct acquisition and the acquisition on interruption. The method of the acquisition on interruption allows to achieve the maximum frequency of interrogation which is supported by the hardware. In the case of Athena, the frequency achieves 100 kHz. The process of acquisition on interruption data becomes the second frames and placed in the archives buffer.
In the case of interrogation of the analog channels on interruption is not possible to configure individually each channel. Such an opportunity is provided only through direct interrogation.
Discrete channels are usually bi-directional and grouped into 8 channels. Each group of channels can be separately designate direction. The module provides the ability to configure a group of discrete parameters.
Also, the module implements the functions of the horizontal reservation, namely, working in conjunction with the remote station of the same level.
Board of Diamond Systems configured by creating the controller in the system OpenSCADA and configuration of it. Example of the tab of configuration of the
controller of the board is shown in Figure 1.
Using this form, it can be set:
In the mode of direct interrogation of analog inputs hardware interrupt of the card, frequency of analog inputs interrogation and the strengthening of the analog converter are not available.
To configure ports of digital inputs / outputs on the controller's page there is the tab of the configuration (fig. 2).
Module provides the information on two types of parameters: the digital and analog. Each type of the parameter is stored in the database and, consequently, has its own tab configuration. Tab of the configuration of analog parameters is presented in Fig.3. Configuration tab of digital parameters is presented in Fig.4.
Using the form of configuration of analog parameters it can be set:
To access the values of analog parameters are attributes must be formed. For analog inputs:
For analog outputs are set:
Using the Configuration tab of digital parameters there can be set:
To access the values of digital parameters the attribute, which provides the input value or inserts the new one, must be formed.
Used version the Linux driver from Diamond systems: dscud5.91linux.tar.gz
The patch for build driver at kernel Linux 2.6.29, used for data gathering by interrupt: lastkernels.patch