AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
ACQ Class Reference

abstract model of an ACQ2106 box. More...

#include <AcqSys.h>

Inheritance diagram for ACQ:
IO ACQ_HW_BASE ACQ_HW ACQ_HW_MULTI ACQ_HW_MEAN ACQ_HW_MEAN_SKIPPER

Public Member Functions

virtual string toString ()
 
virtual bool newSample (int sample)
 
virtual void action (SystemInterface &systemInterface)
 
virtual void action2 (SystemInterface &systemInterface)
 
virtual unsigned tlatch (void)
 returns latest tlatch from lbuf More...
 
virtual void arm (int nsamples)
 prepare to run a shot nsamples long, arm the UUT. More...
 
- Public Member Functions inherited from IO
 IO (string _name, VI _vi, VO _vo)
 
virtual ~IO ()
 
string getName ()
 

Static Public Member Functions

static ACQfactory (int devnum, string _name, VI _vi, VO _vo, VI _vi_offsets, VO _vo_offsets, VI &sys_vi_cursor, VO &sys_vo_cursor)
 

Public Attributes

const VI vi_offsets
 byte offset for each Input type in Local Vector In More...
 
const VO vo_offsets
 byte offset for each Output type in Local Vector Out More...
 
const VI vi_cursor
 index for each Input type in System Interface More...
 
const VO vo_cursor
 index for each Output type in System Interface More...
 
- Public Attributes inherited from IO
const VI vi
 
const VO vo
 

Protected Member Functions

 ACQ (int devnum, string _name, VI _vi, VO _vo, VI _vi_offsets, VO _vo_offsets, VI &sys_vi_cursor, VO &sys_vo_cursor)
 
virtual ~ACQ ()
 

Protected Attributes

bool nowait
 newSample doesn't block for new Tlatch (eg bolo in set with non bolo uuts). More...
 
unsigned wd_mask
 watchdog mask. More...
 
int pollcount
 
int devnum
 AFHBA404 device numbers 0..N. More...
 

Friends

class HBA
 

Detailed Description

abstract model of an ACQ2106 box.

Definition at line 82 of file AcqSys.h.

Constructor & Destructor Documentation

◆ ACQ()

ACQ::ACQ ( int  devnum,
string  _name,
VI  _vi,
VO  _vo,
VI  _vi_offsets,
VO  _vo_offsets,
VI sys_vi_cursor,
VO sys_vo_cursor 
)
protected

Definition at line 116 of file AcqSys.cpp.

◆ ~ACQ()

ACQ::~ACQ ( )
protectedvirtual

Definition at line 128 of file AcqSys.cpp.

Member Function Documentation

◆ action()

virtual void ACQ::action ( SystemInterface systemInterface)
inlinevirtual

Reimplemented in ACQ_HW_MEAN, and ACQ_HW_BASE.

Definition at line 102 of file AcqSys.h.

◆ action2()

virtual void ACQ::action2 ( SystemInterface systemInterface)
inlinevirtual

Reimplemented in ACQ_HW_MEAN, and ACQ_HW_BASE.

Definition at line 104 of file AcqSys.h.

◆ arm()

void ACQ::arm ( int  nsamples)
virtual

prepare to run a shot nsamples long, arm the UUT.

Reimplemented in ACQ_HW_BASE.

Definition at line 150 of file AcqSys.cpp.

◆ factory()

ACQ * ACQ::factory ( int  devnum,
string  _name,
VI  _vi,
VO  _vo,
VI  _vi_offsets,
VO  _vo_offsets,
VI sys_vi_cursor,
VO sys_vo_cursor 
)
static
ACQ::factory is configured by environment variabls to setup the core of the acquisition
  • HW=Value,Skip : Value 0: Simulate (check config file) Value 1: run normal hardware. >1 take mean of N samples Skip: > 0 Skip N samples before mena
  • HW_MULTI=N : Regular capture with N DMA buffers. Allows control program to run at Fs/N

Definition at line 513 of file AcqHw.cpp.

◆ newSample()

bool ACQ::newSample ( int  sample)
virtual

Reimplemented in ACQ_HW_MEAN_SKIPPER, ACQ_HW_MEAN, ACQ_HW_MULTI, and ACQ_HW.

Definition at line 139 of file AcqSys.cpp.

◆ tlatch()

unsigned ACQ::tlatch ( void  )
virtual

returns latest tlatch from lbuf

Reimplemented in ACQ_HW_BASE.

Definition at line 145 of file AcqSys.cpp.

◆ toString()

string ACQ::toString ( )
virtual

Reimplemented from IO.

Definition at line 131 of file AcqSys.cpp.

Friends And Related Function Documentation

◆ HBA

friend class HBA
friend

Definition at line 113 of file AcqSys.h.

Member Data Documentation

◆ devnum

int ACQ::devnum
protected

AFHBA404 device numbers 0..N.

Definition at line 91 of file AcqSys.h.

◆ nowait

bool ACQ::nowait
protected

newSample doesn't block for new Tlatch (eg bolo in set with non bolo uuts).

Definition at line 88 of file AcqSys.h.

◆ pollcount

int ACQ::pollcount
protected

Definition at line 90 of file AcqSys.h.

◆ vi_cursor

const VI ACQ::vi_cursor

index for each Input type in System Interface

Definition at line 95 of file AcqSys.h.

◆ vi_offsets

const VI ACQ::vi_offsets

byte offset for each Input type in Local Vector In

Definition at line 93 of file AcqSys.h.

◆ vo_cursor

const VO ACQ::vo_cursor

index for each Output type in System Interface

Definition at line 96 of file AcqSys.h.

◆ vo_offsets

const VO ACQ::vo_offsets

byte offset for each Output type in Local Vector Out

Definition at line 94 of file AcqSys.h.

◆ wd_mask

unsigned ACQ::wd_mask
protected

watchdog mask.

Definition at line 89 of file AcqSys.h.


The documentation for this class was generated from the following files: