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

output the mean of nb values More...

Inheritance diagram for ACQ_HW_MEAN:
ACQ_HW_MULTI ACQ_HW_BASE ACQ IO ACQ_HW_MEAN_SKIPPER

Public Member Functions

 ACQ_HW_MEAN (int devnum, string _name, VI _vi, VO _vo, VI _vi_offsets, VO _vo_offsets, VI &sys_vi_cursor, VO &sys_vo_cursor, int nmean)
 
virtual ~ACQ_HW_MEAN ()
 
virtual bool newSample (int sample)
 checks host buffer for new sample, if so copies to lbuf and reports true 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...
 
- Public Member Functions inherited from ACQ_HW_MULTI
 ACQ_HW_MULTI (int devnum, string _name, VI _vi, VO _vo, VI _vi_offsets, VO _vo_offsets, VI &sys_vi_cursor, VO &sys_vo_cursor, int nbuffers)
 
virtual ~ACQ_HW_MULTI ()
 
- Public Member Functions inherited from ACQ
virtual string toString ()
 
- Public Member Functions inherited from IO
 IO (string _name, VI _vi, VO _vo)
 
virtual ~IO ()
 
string getName ()
 

Protected Member Functions

bool _newSample (int sample)
 
- Protected Member Functions inherited from ACQ_HW_MULTI
unsigned tlatch0 (int ib)
 
- Protected Member Functions inherited from 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)
 
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...
 
- 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

const int & nmean
 
unsigned * dox
 
int ** raw
 
unsigned * tl0_array
 
int verbose
 
- Protected Attributes inherited from ACQ_HW_MULTI
int pw32_double_buffer
 
int nb
 
int ** raw
 
unsigned * tl0_array
 
int verbose
 
- Protected Attributes inherited from ACQ_HW_BASE
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

- 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

output the mean of nb values

Definition at line 367 of file AcqHw.cpp.

Constructor & Destructor Documentation

◆ ACQ_HW_MEAN()

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

Definition at line 393 of file AcqHw.cpp.

◆ ~ACQ_HW_MEAN()

virtual ACQ_HW_MEAN::~ACQ_HW_MEAN ( )
inlinevirtual

Definition at line 382 of file AcqHw.cpp.

Member Function Documentation

◆ _newSample()

bool ACQ_HW_MEAN::_newSample ( int  sample)
protected

Definition at line 403 of file AcqHw.cpp.

◆ action()

void ACQ_HW_MEAN::action ( SystemInterface systemInterface)
virtual

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

SIMPLIFY: supports AI32 ONLY! COMPLEXIFY : re-scale as LJ 24 bit number so that HW=1 threshold is still valid, then OR the channel ID back in.

Reimplemented from ACQ_HW_BASE.

Definition at line 429 of file AcqHw.cpp.

◆ action2()

void ACQ_HW_MEAN::action2 ( SystemInterface systemInterface)
virtual

late action(), cleanup

Reimplemented from ACQ_HW_BASE.

Definition at line 446 of file AcqHw.cpp.

◆ newSample()

bool ACQ_HW_MEAN::newSample ( int  sample)
virtual

checks host buffer for new sample, if so copies to lbuf and reports true

Parameters
samplechecks host buffer for new sample, if so copies to lbuf and reports true

Reimplemented from ACQ_HW_MULTI.

Reimplemented in ACQ_HW_MEAN_SKIPPER.

Definition at line 414 of file AcqHw.cpp.

Member Data Documentation

◆ dox

unsigned* ACQ_HW_MEAN::dox
protected

Definition at line 372 of file AcqHw.cpp.

◆ nmean

const int& ACQ_HW_MEAN::nmean
protected

Definition at line 370 of file AcqHw.cpp.

◆ raw

int** ACQ_HW_MEAN::raw
protected

Definition at line 373 of file AcqHw.cpp.

◆ tl0_array

unsigned* ACQ_HW_MEAN::tl0_array
protected

Definition at line 374 of file AcqHw.cpp.

◆ verbose

int ACQ_HW_MEAN::verbose
protected

Definition at line 376 of file AcqHw.cpp.


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