Last Updated on Sunday, July 29, 2001 at 06:57:18. by Author: Kristjan Gulbrandsen
CDEV is the protocol used to fetch information about RHIC condition. CDEV apparently stands for 'Common DEVice' and was developed at Thomas Jefferson National Accelerator Facility as a way to transfer data object (in a programming sense) from computer to computer. A better description can be found at the CDEV homepage. CDEV is actually a very large program and an in depth understanding of it would require reading the source could. The following description of its uses is meant to give an understanding of how it is used in Phobos.
This is a class that usually represents a grouping of many parameters. For instance, for radiation monitoring 'blmRing.10' is the name of a device that you can get by saying (among other ways) 'cdevDevice& dev = cdevDevice::attachRef("blmRing.10");'. The actual device is defined in a configuration file called a ddl file (device definition language file).
This is the class that holds all data retrieved for an attribute of a device. A cdevdata object can be made (cdevData data;) and then you ask a device to put its info in a cdevdata object. For instance 'data1HzM' is an attribute of the blmRing.10 device. You can say 'dev.send("get data1HzM",0,&data);' and this will put the info about the data1HzM attribute in the cdevdata object. 'cdevData::asciiDump();' will print the contents of the cdevdata object.
Please send all comments and suggestions regarding this page to Kris. |