qumbia-reader
1.x
A generic client to read from Tango and Epics control systems
|
The qumbia-reader (cumbia read) application is a command line tool to read sources from different engines. EPICS, Tango and random modules are supported.
Install the qumbia-tango-findsrc-plugin from github and the included qumbia-tango-find-src tool (instructions in the project page) to obtain the Tango source bash auto completion.
Formulas can be used through the formula plugin. See the plugin documentation and the example section below for more details.
Read the cumbia random documentation to correctly provide the reader sources that can be used for testing. Specific cumbia-random source patterns allow to group threads, specify the range of generated data, the generation interval, in milliseconds, and the size. It is also possible to specify JavaScript files as sources, wherefrom a custom function supplies data.
Increase the output detail level to see how threads are grouped, understand how they are grouped by means of the cumbia random test features. Set a bound on the number of threads used by timers for polled sources to verify the impact on performance.
Source configuration stored somewhere by the system can be obtained (if this is applies to the engine) Tango device, attribute and class properties can be fetched from the Tango database as well (requires Tango modules).
The command line output can be tuned in terms of
cumbia installation provides two shortcuts to launch the qumbia-reader application:
Started without options (equal to –help), the tool prints a summary of its functions
The list of sources ensue. The implementation supports Tango, EPICS and cumbia-random sources. For the latter, the random:// prefix is required. It is recommended to read the the cumbia random module documentation to learn about the required syntax for the sources.
Simply call cumbia read followed by the list of sources. Sources from different engines can be mixed. By default, one reading is performed, unless –x is specified:
Output:
Output of last command:
instead of the classical syntax
that would require inverted commas:
Both forms are accepted, but auto completion adopts the first syntax.
Simply replace cumbia read with cumbia monitor to start monitoring one or more sources. Interrupt the process pressing any key.
Output levels can be tuned with the –l=normal, –l=medium and –l=high The number of details increases, up to the –l=debug, that prints the whole data structure passed from the lower layer to the application (the CuData bundle contents)
With the –property option it is possible to read the configuration of the sources: upper, lower bounds, alarm and warning thresholds, data format, measurement units, and so on:
The following command lists all properties of the given devices
Example output:
If the device name is followed by a semicolon and a wildcard (*) is present, then the filtered list of device properties matching the wildcard expression is returned:
The output will be:
List the attribute properties of test/device/1/double_scalar
Read the values property of the string_scalar attribute
Read the cvs_location property of the class TangoTest
The following command fetches the list of properties of the TdbArchiver and HdbArchiver classes:
Output