40m QIL Cryo_Lab CTN SUS_Lab CAML OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  40m Log  Not logged in ELOG logo
Entry  Mon Oct 3 14:05:41 2011, Jenne, Update, SUS, Failing to set SUS summary screen values 
    Reply  Mon Oct 3 17:27:23 2011, Jenne, Update, SUS, Failing to set SUS summary screen values 
       Reply  Sun Oct 16 05:35:18 2011, rana, Update, Computer Scripts / Programs, Failing to set SUS summary screen values 
          Reply  Thu Oct 20 09:54:53 2011, jamie, Update, Computer Scripts / Programs, pynds working on pianosa again 
Message ID: 5604     Entry time: Mon Oct 3 17:27:23 2011     In reply to: 5601     Reply to this: 5674
Author: Jenne 
Type: Update 
Category: SUS 
Subject: Failing to set SUS summary screen values 

Quote:

I am trying to run Rana's setSensors.py script, but am failing.  Any inspiration would be appreciated:

rosalba:SUS_SUMMARY>./setSensors.py 1001708529 500 .1 .25
['./setSensors.py', '1001708529', '500', '.1', '.25']
/cvs/cds/caltech/apps/linux64/python/lib64/python2.4/site-packages/nds/__init__.py:28: RuntimeWarning: No protocol specified, attempting protocol nds_v2
  super(daq, self).__init__(host, port)
Connecting NDS2 .... authenticate done
Traceback (most recent call last):
  File "./setSensors.py", line 81, in ?
    mean = acquire(x)
  File "./setSensors.py", line 73, in acquire
    daq.request_channel(chans[x])
Boost.Python.ArgumentError: Python argument types in
    daq.request_channel(daq, str)
did not match C++ signature:
    request_channel(_daq_t {lvalue}, daq_channel_t*)

I'm not exactly sure what the problem is.  Line 73, looks like it should have 2 arguments in the daq.request_channel, but even if I put in the "daq" variable (which is set a few lines above), I get the exact same error.  So...something else is wrong.  Ideas from someone who "speaks" python??

 My guess is that this has something to do with the NDS client version you're using.  Try running the script on a machine where pynds and nds-client are known to be compatible, like pianosa.

ELOG V3.1.3-