40m QIL Cryo_Lab CTN SUS_Lab TCS_Lab OMC_Lab CRIME_Lab FEA ENG_Labs OptContFac Mariner WBEEShop
  TCS elog  Not logged in ELOG logo
Message ID: 140     Entry time: Fri Apr 22 19:51:37 2011
Author: Aidan 
Type: Computing 
Category: EPICS 
Subject: pyepics installed on princess_sparkle 

 I installed the pyepics package on princess_sparkle since this is much easier under Ubuntu than under CentOS.

  1. sudo apt-get install python-dateutil python-setuptools
  2. make sure that LD_LIBRARY_PATH points to EPICS libraries by echo $LD_LIBRARY_PATH
  3. sudo ldconfig
  4. sudo easy_install -U pyepics

Then I started the following python script ~/start_test_channels.py in the background on princess_sparkle. The EPICS channels are actually in an IOC on tcs_daq. They are all acquired by the frame builder at 16Hz.

 

 

 

 

Attachment 1: start_test_channels.py  2 kB  | Hide | Hide all
#!/usr/bin/python
# a short script to output low frequency sine wave to EPICS channels

import epics
import math
import time
import os
import random

a = 0
... 70 more lines ...
ELOG V3.1.3-