Skip to content

sestei/pydaqconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyDAQConfig

A Python package and GUI for activating DAQ channels in the Glasgow CDS system.

Objectives

  • replacement for daqconfig
  • always keep a backup file
  • allow a post-save command, which e.g. can commit the changed file to a repository
  • quick acquisition of multiple channels via channel sets
  • allows browsing of old files/old versions in the repository
  • checks DAQ files for modifications before saving

Prerequisites

  • Python >= 2.7
  • PyQT 4
  • for archive browsing: pysvn (automatically disabled when this module is not available)

Environmental Variables

The env variable PYDAQCONFIG_CHAN_DIR must be set to the directory which stores the DAQ .ini files.

The env variable PYDAQCONFIG_POST_SAVE_CMD can specify a command which will be run after saving the .ini files. The full path to the changed files will be given as command line arguments.

To be able to browse the archive of old channel settings, two more environmental variables have to be set. PYDAQCONFIG_SVN_CHAN_DIR must be set to the full path to the DAQ .ini files in the locally checked out SVN repository. PYDAQCONFIG_SVN_CREDENTIALS must contain a username:password pair to be used with this SVN repository.

Channel Sets

To quickly acquire a larger number of channels, channel sets can be defined. pyDAQConfig looks in PYDAQCONFIG_CHAN_DIR for files with the ending .set. These files should contain a list of channels (full channel name, i.e. X1:XYZ-SUBSYSTEM_CHANNEL_DQ). Lines beginning with # will be ignored. The button Channel Sets... then calls up a dialog where all channel sets are listed. Selecting a channel set and clicking Activate enables all channels in that set and sets them to acquire data. Clicking Deactivate turns of data acquisition, however it leaves the channel enabled so that data can be retrieved via e.g. ligoDV.

Copyright

This work is licensed under the Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.


-- Sebastian Steinlechner, Sean Leavey, 2015

About

A Python script to replace daqconfig

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages