Commit 0878b3d6 authored by Theodor-Adrian Stana's avatar Theodor-Adrian Stana

sw: Changed pulsetest.py to avoid unnecessary user input

Also added channel frequency in output file.
Signed-off-by: Theodor-Adrian Stana's avatarTheodor Stana <t.stana@cern.ch>
parent d117dd4c
#===============================================================================
# CERN (BE-CO-HT)
# EI2C global definitions file
#===============================================================================
# author: Theodor Stana (t.stana@cern.ch)
#
# date of creation: 2014-03-05
#
# version: 1.0
#
# description:
#
# This module defines some global constants that are used by other scripts in
# the software suite. The constants and their definitions are in the code
# below.
#
#===============================================================================
# GNU LESSER GENERAL PUBLIC LICENSE
#===============================================================================
# This source file is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation; either version 2.1 of the License, or (at your
# option) any later version. This source is distributed in the hope that it
# will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details. You should have
# received a copy of the GNU Lesser General Public License along with this
# source; if not, download it from http://www.gnu.org/licenses/lgpl-2.1.html
#===============================================================================
# last changes:
# 2014-03-05 Theodor Stana File created
#===============================================================================
# TODO: -
#===============================================================================
# Hostname, username and password
HNAME = ""
USER = ""
PWD = ""
# Boolean to tell the ei2c.py module whether to create a dump file for the ELMA
# command replies
DUMP = False
......@@ -9,31 +9,31 @@ To run, you first need a CONV-TTL-BLO with a pulsetest gateware. Then:
%> ./pulsetest.py
Slot no.: <give the slot number of the pulsetest CONV-TTL-BLO>
Enable channel 1? (y/n) y
freq (Hz): 1
Enable channel 2? (y/n) n
Enable channel 3? (y/n) n
Enable channel 4? (y/n) y
freq (Hz): 2
Enable channel 5? (y/n) n
Enable channel 6? (y/n) y
freq (Hz): 4
CH1 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
CH2 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
CH3 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
CH4 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
CH5 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
CH6 freq (Hz): <pulse frequency, number >0; 0 disables the channel >
How long would you like to run the test?
hrs: <give the number of hours>
mins: <give the number of minutes>
secs: <give the number of seconds>
For each channel you want to enable, it writes the frequency value to the
appropriate register in the pulsetest gateware, then sets the appropriate bits
in the control register to enable pulse generation. For more information on
the pulsetest gateware and the registers the script is writing, see:
For each channel you set a frequency value greater than 0, the script writes the
frequency value to the appropriate register in the pulsetest gateware, then sets
the appropriate bits to the control register to enable pulse generation. For
more information on the pulsetest gateware and the registers the script is
writing, see:
http://www.ohwr.org/projects/conv-ttl-blo-gw/wiki/pulsetest
Note that the output frequency is limited to 166 kHz _in software_, to avoid
damage to the output transformers.
Note that the output pulse frequency is limited to the MAXFREQ value in the script
_in software_, to avoid damage to the output stage MOSFET. The gateware employs
no limitation on this value.
When the script finishes execution, it will store the output to a file it
When the script finishes execution, the script stores the output to a file it
specifies at the end. The name of this file is based on the date and time
the script started execution.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment