AFHBA404
AFHBA404 connects ACQ2106 to PCI-Express
Protected Member Functions | Protected Attributes | List of all members
ACQ_HW_BASE Class Reference

concrete model of ACQ2106 box. More...

Inheritance diagram for ACQ_HW_BASE:
ACQ IO ACQ_HW ACQ_HW_MULTI ACQ_HW_MEAN ACQ_HW_MEAN_SKIPPER

Protected Member Functions

 ACQ_HW_BASE (int devnum, string _name, VI _vi, VO _vo, VI _vi_offsets, VO _vo_offsets, VI &sys_vi_cursor, VO &sys_vo_cursor)
 
virtual ~ACQ_HW_BASE ()
 
virtual void arm (int nsamples)
 prepare to run a shot nsamples long, arm the UUT. More...
 
virtual unsigned tlatch (void)
 returns latest tlatch from lbuf More...
 
virtual void action (SystemInterface &systemInterface)
 on newSample, copy VO from SI, copy VI to SI More...
 
virtual void action2 (SystemInterface &systemInterface)
 late action(), cleanup More...
 
- Protected Member Functions inherited from ACQ
 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

Devdev
 
unsigned tl0
 
unsigned * dox
 
int sample
 
const int spix
 
int pw32_double_buffer
 
- Protected Attributes inherited from ACQ
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...
 

Additional Inherited Members

- Public Member Functions inherited from ACQ
virtual string toString ()
 
virtual bool newSample (int sample)
 
- Public Member Functions inherited from IO
 IO (string _name, VI _vi, VO _vo)
 
virtual ~IO ()
 
string getName ()
 
- Static Public Member Functions inherited from ACQ
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 inherited from ACQ
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
 

Detailed Description

concrete model of ACQ2106 box.

Definition at line 72 of file AcqHw.cpp.

Constructor & Destructor Documentation

◆ ACQ_HW_BASE()

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

Definition at line 94 of file AcqHw.cpp.

◆ ~ACQ_HW_BASE()

virtual ACQ_HW_BASE::~ACQ_HW_BASE ( )
inlineprotectedvirtual

Definition at line 112 of file AcqHw.cpp.

Member Function Documentation

◆ action()

void ACQ_HW_BASE::action ( SystemInterface systemInterface)
protectedvirtual

on newSample, copy VO from SI, copy VI to SI

Parameters
systemInterfacecopy SI to VO, copy VI to SI, advance local buffer pointer.

Reimplemented from ACQ.

Reimplemented in ACQ_HW_MEAN.

Definition at line 203 of file AcqHw.cpp.

◆ action2()

void ACQ_HW_BASE::action2 ( SystemInterface systemInterface)
protectedvirtual

late action(), cleanup

in slack time, copy SI.OUT to VO archive cursor.

@todo make it optional in case it takes too long

Reimplemented from ACQ.

Reimplemented in ACQ_HW_MEAN.

Definition at line 235 of file AcqHw.cpp.

◆ arm()

void ACQ_HW_BASE::arm ( int  nsamples)
protectedvirtual

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

Reimplemented from ACQ.

Definition at line 276 of file AcqHw.cpp.

◆ tlatch()

unsigned ACQ_HW_BASE::tlatch ( void  )
protectedvirtual

returns latest tlatch from lbuf

Reimplemented from ACQ.

Definition at line 271 of file AcqHw.cpp.

Member Data Documentation

◆ dev

Dev* ACQ_HW_BASE::dev
protected

Definition at line 86 of file AcqHw.cpp.

◆ dox

unsigned* ACQ_HW_BASE::dox
protected

Definition at line 89 of file AcqHw.cpp.

◆ pw32_double_buffer

int ACQ_HW_BASE::pw32_double_buffer
protected

Definition at line 92 of file AcqHw.cpp.

◆ sample

int ACQ_HW_BASE::sample
protected

Definition at line 90 of file AcqHw.cpp.

◆ spix

const int ACQ_HW_BASE::spix
protected

Definition at line 91 of file AcqHw.cpp.

◆ tl0

unsigned ACQ_HW_BASE::tl0
protected

Definition at line 87 of file AcqHw.cpp.


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