Electronics and Software
Engineering Innovation
BMeasure-lib 1.3.0

#include <BMeasureUnits.h>

Inheritance diagram for BMeasureApi::BMeasureUnits:
BTask

Public Member Functions

 BMeasureUnits (Bool threaded=0)
 
virtual ~BMeasureUnits ()
 
void clear ()
 
BError unitsFind ()
 
BError unitAdd (BString serialNumber, BString device)
 
BError unitDelete (BString device)
 
void setMulti (Bool on)
 
BUInt32 unitsNum ()
 
BUInt32 unitsConnectedNum ()
 
BMeasureUnit1unit (BUInt u)
 
BMeasureUnit1unitMaster ()
 
BError unitsConnect ()
 
Bool unitsConnected ()
 
BError unitsDisconnect ()
 
virtual void disconnected ()
 
BError unitSetOrder (BUInt u, BUInt order, Bool move)
 
BError unitSetEnabled (BUInt u, Bool enable)
 
BError dataSetNumStreams (BUInt num)
 Set the number of data output channels.
 
void dataStreamEnable (Bool on)
 Enable the streaming of data.
 
void dataClear ()
 
BUInt dataAvailable (BUInt stream)
 
BError dataWait (BUInt stream, BTimeout timeoutUs=BTimeoutForever)
 
virtual void dataEvent (BUInt stream)
 
DataBlockFloat * dataRead (BUInt stream)
 
void dataDone (BUInt stream)
 
virtual void dataProcEvent (BUInt stream)
 
DataBlockProc * dataProcRead (BUInt stream)
 
void dataProcDone (BUInt stream)
 
void run ()
 Threaded run mode.
 
void sendDataFloatQueue (const DataBlockFloat &dataBlock)
 
void sendDataProcQueue (const DataBlockProc &dataBlock)
 
void sendDataProcess ()
 
void sendDataProcessTrigger ()
 
void outputBlock (BMeasureUnitsDataBlock *block)
 
virtual BError getNodeInfo (NodeInfo &nodeInfo)
 
virtual BError login (const BString &userid, const BString &password)
 
virtual BError logout ()
 
virtual BError changePassword (const BString &userid, const BString &oldPassword, const BString &newPassword)
 
virtual BUInt numChannels ()
 The number of channels of data.
 
virtual BError setMode (const Mode &mode)
 Set the current operational mode.
 
virtual BError getStatus (NodeStatus &nodeStatus)
 
virtual void sendTime (const BTimeUs &time)
 Sends the current time.
 
virtual BError getInformation (Information &info)
 
virtual BError getInfoBlock (InfoBlock &infoBlock)
 
virtual BError getChannelConfig (const BUInt8 &channelNumber, ChannelConfig &channelConfig)
 
virtual BError setChannelConfig (const BUInt8 &channelNumber, const ChannelConfig &channelConfig)
 
virtual BError getConfig (Configuration &config)
 Should we have this, not generic for different instruments ?
 
virtual BError setConfig (const Configuration &config)
 Should we have this, not generic for different instruments ?
 
virtual BError getMeasurementConfig (const Bool &saved, MeasurementConfig &measurement)
 Get measurement config.
 
virtual BError setMeasurementConfig (const Bool &save, const MeasurementConfig &measurement)
 Set measurement config.
 
virtual BError sendDataEnable (const DataSend &dataSend)
 Enables the sending of data.
 
virtual BError getAwgConfig (const Bool &saved, AwgConfig &awgConfig)
 Get AWG Configuration.
 
virtual BError setAwgConfig (const Bool &save, const AwgConfig &awgConfig)
 Configure AWG.
 
virtual BError alarmsClear (const BUInt32 &bits)
 Clear all alarms.
 
virtual void sendStatusServe (const NodeStatus &nodeStatus)
 
virtual void sendDataFloatServe (const DataBlockFloat &dataBlockFloat)
 
virtual void sendDataProcServe (const DataBlockProc &dataBlockProc)
 
virtual void sendMessage (BUInt32 &source, BString &message)
 
virtual void sendMessageServe (const BUInt32 &source, const BString &message)
 
void debugPrint ()
 
- Public Member Functions inherited from BTask
 BTask (const char *name="", BUInt stackSize=0, BUInt priority=1)
 
virtual ~BTask ()
 
void init (const char *name, BUInt stackSize=0, BUInt priority=1)
 
BError start ()
 
void stop ()
 
void waitForCompletion ()
 
int setPriority (BUInt priority)
 

Private Member Functions

BMeasureUnitsDataBlockgetFreeBlock (BUInt numSamples)
 

Private Attributes

BSemaphoreBool oprocEnable
 Enable processing.
 
BSemaphoreBool oprocRunning
 Processing is running.
 
Bool omulti
 Multiple BMeasures connected together.
 
BMutex olockUnits
 
BList< BMeasureUnit1 * > ounits
 
BInt ounitMaster
 
BUInt onumConnected
 
BUInt onumChannels
 
BUInt odataStreamNum
 
BUInt32 ofill
 
BUInt onumBlocks
 
BMutex olockInput
 
BList< BMeasureUnitsDataBlock * > odataBlocksFree
 
BList< BMeasureUnitsDataBlock * > odataBlocksIn
 
BList< BMeasureUnitsDataBlock * > odataBlocksProcess
 
BCondInt odataBlocksProcessNum
 
BMutex olockOutput
 
BList< BMeasureUnitsDataBlock * > odataBlocksOut [2]
 
BCondInt odataBlocksOutCount [2]
 
BMutex olockProcInput
 
BList< DataBlockProc > odataProcBlocks
 
MeasurementConfig olocalTrigger
 
Bool otriggered
 
BUInt ostartSample
 

Additional Inherited Members

- Static Protected Member Functions inherited from BTask
static void * taskFunc (void *)
 
- Protected Attributes inherited from BTask
const char * oname
 
BUInt ostackSize
 
BUInt opolicy
 
BUInt opriority
 
pthread_t othread
 
Bool orunning
 

Constructor & Destructor Documentation

◆ BMeasureUnits()

BMeasureApi::BMeasureUnits::BMeasureUnits ( Bool threaded = 0)

◆ ~BMeasureUnits()

BMeasureApi::BMeasureUnits::~BMeasureUnits ( )
virtual

Member Function Documentation

◆ alarmsClear()

BError BMeasureApi::BMeasureUnits::alarmsClear ( const BUInt32 & bits)
virtual

Clear all alarms.

◆ changePassword()

BError BMeasureApi::BMeasureUnits::changePassword ( const BString & userid,
const BString & oldPassword,
const BString & newPassword )
virtual

◆ clear()

void BMeasureApi::BMeasureUnits::clear ( )

◆ dataAvailable()

BUInt BMeasureApi::BMeasureUnits::dataAvailable ( BUInt stream)

◆ dataClear()

void BMeasureApi::BMeasureUnits::dataClear ( )

◆ dataDone()

void BMeasureApi::BMeasureUnits::dataDone ( BUInt stream)

◆ dataEvent()

void BMeasureApi::BMeasureUnits::dataEvent ( BUInt stream)
virtual

◆ dataProcDone()

void BMeasureApi::BMeasureUnits::dataProcDone ( BUInt stream)

◆ dataProcEvent()

void BMeasureApi::BMeasureUnits::dataProcEvent ( BUInt stream)
virtual

◆ dataProcRead()

DataBlockProc * BMeasureApi::BMeasureUnits::dataProcRead ( BUInt stream)

◆ dataRead()

DataBlockFloat * BMeasureApi::BMeasureUnits::dataRead ( BUInt stream)

◆ dataSetNumStreams()

BError BMeasureApi::BMeasureUnits::dataSetNumStreams ( BUInt num)

Set the number of data output channels.

◆ dataStreamEnable()

void BMeasureApi::BMeasureUnits::dataStreamEnable ( Bool on)

Enable the streaming of data.

◆ dataWait()

BError BMeasureApi::BMeasureUnits::dataWait ( BUInt stream,
BTimeout timeoutUs = BTimeoutForever )

◆ debugPrint()

void BMeasureApi::BMeasureUnits::debugPrint ( )

◆ disconnected()

void BMeasureApi::BMeasureUnits::disconnected ( )
virtual

◆ getAwgConfig()

BError BMeasureApi::BMeasureUnits::getAwgConfig ( const Bool & saved,
AwgConfig & awgConfig )
virtual

Get AWG Configuration.

◆ getChannelConfig()

BError BMeasureApi::BMeasureUnits::getChannelConfig ( const BUInt8 & channelNumber,
ChannelConfig & channelConfig )
virtual

◆ getConfig()

BError BMeasureApi::BMeasureUnits::getConfig ( Configuration & config)
virtual

Should we have this, not generic for different instruments ?

◆ getFreeBlock()

BMeasureUnitsDataBlock * BMeasureApi::BMeasureUnits::getFreeBlock ( BUInt numSamples)
private

◆ getInfoBlock()

BError BMeasureApi::BMeasureUnits::getInfoBlock ( InfoBlock & infoBlock)
virtual

◆ getInformation()

BError BMeasureApi::BMeasureUnits::getInformation ( Information & info)
virtual

◆ getMeasurementConfig()

BError BMeasureApi::BMeasureUnits::getMeasurementConfig ( const Bool & saved,
MeasurementConfig & measurement )
virtual

Get measurement config.

◆ getNodeInfo()

BError BMeasureApi::BMeasureUnits::getNodeInfo ( NodeInfo & nodeInfo)
virtual

◆ getStatus()

BError BMeasureApi::BMeasureUnits::getStatus ( NodeStatus & nodeStatus)
virtual

◆ login()

BError BMeasureApi::BMeasureUnits::login ( const BString & userid,
const BString & password )
virtual

◆ logout()

BError BMeasureApi::BMeasureUnits::logout ( )
virtual

◆ numChannels()

BUInt BMeasureApi::BMeasureUnits::numChannels ( )
virtual

The number of channels of data.

◆ outputBlock()

void BMeasureApi::BMeasureUnits::outputBlock ( BMeasureUnitsDataBlock * block)

◆ run()

void BMeasureApi::BMeasureUnits::run ( )
virtual

Threaded run mode.

Reimplemented from BTask.

◆ sendDataEnable()

BError BMeasureApi::BMeasureUnits::sendDataEnable ( const DataSend & dataSend)
virtual

Enables the sending of data.

◆ sendDataFloatQueue()

void BMeasureApi::BMeasureUnits::sendDataFloatQueue ( const DataBlockFloat & dataBlock)

◆ sendDataFloatServe()

void BMeasureApi::BMeasureUnits::sendDataFloatServe ( const DataBlockFloat & dataBlockFloat)
virtual

◆ sendDataProcess()

void BMeasureApi::BMeasureUnits::sendDataProcess ( )

◆ sendDataProcessTrigger()

void BMeasureApi::BMeasureUnits::sendDataProcessTrigger ( )

◆ sendDataProcQueue()

void BMeasureApi::BMeasureUnits::sendDataProcQueue ( const DataBlockProc & dataBlock)

◆ sendDataProcServe()

void BMeasureApi::BMeasureUnits::sendDataProcServe ( const DataBlockProc & dataBlockProc)
virtual

◆ sendMessage()

void BMeasureApi::BMeasureUnits::sendMessage ( BUInt32 & source,
BString & message )
virtual

◆ sendMessageServe()

void BMeasureApi::BMeasureUnits::sendMessageServe ( const BUInt32 & source,
const BString & message )
virtual

◆ sendStatusServe()

void BMeasureApi::BMeasureUnits::sendStatusServe ( const NodeStatus & nodeStatus)
virtual

◆ sendTime()

void BMeasureApi::BMeasureUnits::sendTime ( const BTimeUs & time)
virtual

Sends the current time.

◆ setAwgConfig()

BError BMeasureApi::BMeasureUnits::setAwgConfig ( const Bool & save,
const AwgConfig & awgConfig )
virtual

Configure AWG.

◆ setChannelConfig()

BError BMeasureApi::BMeasureUnits::setChannelConfig ( const BUInt8 & channelNumber,
const ChannelConfig & channelConfig )
virtual

◆ setConfig()

BError BMeasureApi::BMeasureUnits::setConfig ( const Configuration & config)
virtual

Should we have this, not generic for different instruments ?

◆ setMeasurementConfig()

BError BMeasureApi::BMeasureUnits::setMeasurementConfig ( const Bool & save,
const MeasurementConfig & measurement )
virtual

Set measurement config.

◆ setMode()

BError BMeasureApi::BMeasureUnits::setMode ( const Mode & mode)
virtual

Set the current operational mode.

◆ setMulti()

void BMeasureApi::BMeasureUnits::setMulti ( Bool on)

◆ unit()

BMeasureUnit1 & BMeasureApi::BMeasureUnits::unit ( BUInt u)

◆ unitAdd()

BError BMeasureApi::BMeasureUnits::unitAdd ( BString serialNumber,
BString device )

◆ unitDelete()

BError BMeasureApi::BMeasureUnits::unitDelete ( BString device)

◆ unitMaster()

BMeasureUnit1 & BMeasureApi::BMeasureUnits::unitMaster ( )

◆ unitsConnect()

BError BMeasureApi::BMeasureUnits::unitsConnect ( )

◆ unitsConnected()

Bool BMeasureApi::BMeasureUnits::unitsConnected ( )

◆ unitsConnectedNum()

BUInt BMeasureApi::BMeasureUnits::unitsConnectedNum ( )

◆ unitsDisconnect()

BError BMeasureApi::BMeasureUnits::unitsDisconnect ( )

◆ unitSetEnabled()

BError BMeasureApi::BMeasureUnits::unitSetEnabled ( BUInt u,
Bool enable )

◆ unitSetOrder()

BError BMeasureApi::BMeasureUnits::unitSetOrder ( BUInt u,
BUInt order,
Bool move )

◆ unitsFind()

BError BMeasureApi::BMeasureUnits::unitsFind ( )

◆ unitsNum()

BUInt BMeasureApi::BMeasureUnits::unitsNum ( )

Member Data Documentation

◆ odataBlocksFree

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksFree
private

◆ odataBlocksIn

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksIn
private

◆ odataBlocksOut

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksOut[2]
private

◆ odataBlocksOutCount

BCondInt BMeasureApi::BMeasureUnits::odataBlocksOutCount[2]
private

◆ odataBlocksProcess

BList<BMeasureUnitsDataBlock*> BMeasureApi::BMeasureUnits::odataBlocksProcess
private

◆ odataBlocksProcessNum

BCondInt BMeasureApi::BMeasureUnits::odataBlocksProcessNum
private

◆ odataProcBlocks

BList<DataBlockProc> BMeasureApi::BMeasureUnits::odataProcBlocks
private

◆ odataStreamNum

BUInt BMeasureApi::BMeasureUnits::odataStreamNum
private

◆ ofill

BUInt32 BMeasureApi::BMeasureUnits::ofill
private

◆ olocalTrigger

MeasurementConfig BMeasureApi::BMeasureUnits::olocalTrigger
private

◆ olockInput

BMutex BMeasureApi::BMeasureUnits::olockInput
private

◆ olockOutput

BMutex BMeasureApi::BMeasureUnits::olockOutput
private

◆ olockProcInput

BMutex BMeasureApi::BMeasureUnits::olockProcInput
private

◆ olockUnits

BMutex BMeasureApi::BMeasureUnits::olockUnits
private

◆ omulti

Bool BMeasureApi::BMeasureUnits::omulti
private

Multiple BMeasures connected together.

◆ onumBlocks

BUInt BMeasureApi::BMeasureUnits::onumBlocks
private

◆ onumChannels

BUInt BMeasureApi::BMeasureUnits::onumChannels
private

◆ onumConnected

BUInt BMeasureApi::BMeasureUnits::onumConnected
private

◆ oprocEnable

BSemaphoreBool BMeasureApi::BMeasureUnits::oprocEnable
private

Enable processing.

◆ oprocRunning

BSemaphoreBool BMeasureApi::BMeasureUnits::oprocRunning
private

Processing is running.

◆ ostartSample

BUInt BMeasureApi::BMeasureUnits::ostartSample
private

◆ otriggered

Bool BMeasureApi::BMeasureUnits::otriggered
private

◆ ounitMaster

BInt BMeasureApi::BMeasureUnits::ounitMaster
private

◆ ounits

BList<BMeasureUnit1*> BMeasureApi::BMeasureUnits::ounits
private

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