Download LUCID User's Guide - Experimental Subatomic Physics
Transcript
LUCID Utility Programs and Subroutines NetHvSetRampRate(int ramprate)Sets the ramp rate for the power supply. ramprate must be positive. NetHvSetDemand(int first, int nchan, int value) Sets the demand to the specified value for the channels starting at first for the number of channels nchan. NetHvGetDemand(int first, int nchan, int *value) Finds the demand for the specified range of channels and places the values in the array value. NetHvGetMeasured(int first, int nchan, int *value) Reads the voltage levels for the specified range of channels, and places the result in the array pointed to by value. NetHvSetIlimit(int ilimit)Sets the current limit to ilimit. If the limit is negative, the negative limit is set, otherwise the positive limit is set. NetHvGetIlimit(int *pos, int *neg) Finds the current limits and places them in pos and neg. NetHvClose() Removes the connection to the high voltage controller. NetHvSetDebuglev(int level)Sets the debugging level for the net daemon software. Reading Q-format Data The Qread routines provide access to events in files written by the Q software package. A C definition for the Q structures used is found in /home/lucid/include/qformat.h. This software has not been extensively tested. Qopen(char *name) The file referenced by name is opened to be read by the Qread() routine. 0 is returned on success, -1 on error. Qread() The next Q record is read and returned as a pointer to the Qtapeheader structure. This pointer can be cast to point to the appropriate structure type. NULL is returned on error or end-of-file. Qclose() The Q data stream is closed. Writing Q-format Data These routines were originally intended to allow Q data to be written directly from the writer. Because the Q information is a subset of what LUCID records, experimenters must now record their data in LUCID format, and then use the lucid_to_q program to convert their data. This allows complete access to the experiment data for independent analysis by different groups. Reading Q-format Data LUCID Functions and Subroutines 7-14