TwiceAsNice  2019-02-18
Functions | Variables
bufferDownloadtest Namespace Reference

Functions

def connectAdSec (endpoint)
 
def getSlopeData ()
 
def getFrameCounters ()
 
def extractSlopes ()
 

Variables

 level
 
 config = Application.config()
 
 numberOfDistBlocks = config.node("BCU.IM.MUM_DIST_BLOCK").Int
 
 pushpullBlockSize = config.node("BCU.IM.PUSH_PULL_BLOCK_SIZE").Int
 
 skip = config.node("ADSEC.SKIP").Int
 
 endpoint = config.node("ADSEC.ENDPOINT").String
 
 framerate = float(config.node("ADSEC.FRAMERATE").Int)
 
 diagChanDecimation = config.node("ADSEC.DECIM").Int
 
 RestoreShape = config.node("ADSEC.RESTORE").Bool
 
 ShapeFile = config.node("ADSEC.SHAPEFILE").String
 
 ovsFactor = config.node("ADSEC.OVS").Float
 
 ovs = float(framerate) * ovsFactor
 
int maxovs = 600
 
 bankID = ADSEC.Bank.BankA
 
 numberOfModes = config.node("BCU.IM.NUM_MODES").Int
 
 prefix = config.node("BCU.PREFIX").String
 
 gainVec = None
 
 aim = interaction.InteractionMatrix(config.node('BCU'))
 
def loop = connectAdSec(endpoint)
 
string resultFilePrefix = strftime("%Y-%m-%d-%H-%M", gmtime()) +"_Rot" \
 

Function Documentation

◆ connectAdSec()

def bufferDownloadtest.connectAdSec (   endpoint)
Connects to AdSec arbitrator service 

Parameters
----------
endpoint :  string 
    Ice Endpoint of the AdSec ICE interface

◆ extractSlopes()

def bufferDownloadtest.extractSlopes ( )
Extracts all disturbance slope frames from the ringbuffer

◆ getFrameCounters()

def bufferDownloadtest.getFrameCounters ( )
Download the vector of framecounters from the AdSec slope buffer.

Returns
-------
out : ndarray of frame counters

◆ getSlopeData()

def bufferDownloadtest.getSlopeData ( )
Download the complete slope buffer from the AdSec 

Returns
-------
out : ndarray 
    slopes vectors. The slopes are in the order of the bcu output.

Variable Documentation

◆ aim

bufferDownloadtest.aim = interaction.InteractionMatrix(config.node('BCU'))

◆ bankID

bufferDownloadtest.bankID = ADSEC.Bank.BankA

◆ config

bufferDownloadtest.config = Application.config()

◆ diagChanDecimation

bufferDownloadtest.diagChanDecimation = config.node("ADSEC.DECIM").Int

◆ endpoint

bufferDownloadtest.endpoint = config.node("ADSEC.ENDPOINT").String

◆ framerate

bufferDownloadtest.framerate = float(config.node("ADSEC.FRAMERATE").Int)

◆ gainVec

bufferDownloadtest.gainVec = None

◆ level

bufferDownloadtest.level

◆ loop

def bufferDownloadtest.loop = connectAdSec(endpoint)

◆ maxovs

int bufferDownloadtest.maxovs = 600

◆ numberOfDistBlocks

bufferDownloadtest.numberOfDistBlocks = config.node("BCU.IM.MUM_DIST_BLOCK").Int

◆ numberOfModes

bufferDownloadtest.numberOfModes = config.node("BCU.IM.NUM_MODES").Int

◆ ovs

bufferDownloadtest.ovs = float(framerate) * ovsFactor

◆ ovsFactor

bufferDownloadtest.ovsFactor = config.node("ADSEC.OVS").Float

◆ prefix

bufferDownloadtest.prefix = config.node("BCU.PREFIX").String

◆ pushpullBlockSize

bufferDownloadtest.pushpullBlockSize = config.node("BCU.IM.PUSH_PULL_BLOCK_SIZE").Int

◆ RestoreShape

bufferDownloadtest.RestoreShape = config.node("ADSEC.RESTORE").Bool

◆ resultFilePrefix

string bufferDownloadtest.resultFilePrefix = strftime("%Y-%m-%d-%H-%M", gmtime()) +"_Rot" \

◆ ShapeFile

bufferDownloadtest.ShapeFile = config.node("ADSEC.SHAPEFILE").String

◆ skip

bufferDownloadtest.skip = config.node("ADSEC.SKIP").Int