40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Tue Jan 11 13:32:52 2011, josephb, kiwamu, Update, CDS, Updated some DAQ channel names 
    Reply  Fri Jan 14 20:39:20 2011, rana, Update, CDS, Updated some DAQ channel names 
    Reply  Mon Feb 14 21:59:35 2011, rana, Update, CDS, Updated some DAQ channel names 
       Reply  Tue Feb 15 11:56:17 2011, josephb, Update, CDS, Updated some DAQ channel names 
Message ID: 4134     Entry time: Tue Jan 11 13:32:52 2011     Reply to this: 4160   4292
Author: josephb, kiwamu 
Type: Update 
Category: CDS 
Subject: Updated some DAQ channel names 

[Joe, Kiwamu]

We modified the activateDAQ.py script which lives in /opt/rtcds/caltech/c1/chans/daq/ and updates the C1SUS.ini, C1MCS.ini, C1RMS.ini, C1SCX.ini and C1SCY.ini files.  These files contain the DAQ channels for all the optics.

It has been modified so that channels like C1:SUS-ITMX_ULSEN_OUT_DAQ become C1:SUS-ITMX_SENSOR_UL.  Similarly the oplev signals go from C1:SUS-ITMX_OLPIT_OUT to C1:SUS-ITMX_OPLEV_PERROR.

After some debugging, we ran the script successfully and checked the output was correct.  We then restarted the frame builder (telnet fb 8088 and then shutdown) and also hit the DAQ reload button for all the front ends.

I tested in dataviewer that I could go back several years as well as going back just 1 hour in the history and see data for C1:SUS-ITMX_SENSOR_LL as well as C1:SUS-ITMX_OPLEV_YERROR.  I also tested realtime is also working for these channels.


The contents of the script are below.


channels_dict = {'SUSPOS_IN1':'SUSPOS_IN1_DAQ',


## set datarate

## read the ini files
for inputfile in inputfiles:
    print inputfile
    ifile = open(inputfile,'r')
    lines = ifile.readlines()

    for k in range(len(lines)):
        for op in optics:
            for ch in channels_dict:
                if (prefix+op+ch+suffix) in lines[k]:
                    lines[k]=prefix + op + channels_dict[ch] + "]\n"
    ofile = open(outputfile,'w')
    for k in range(len(lines)):
        #print lines[k]

ELOG V3.1.3-