TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
Basda::osci::DeviceAgilent6k Class Reference

#include <DeviceAgilentOsci.h>

Inheritance diagram for Basda::osci::DeviceAgilent6k:
Inheritance graph
Collaboration diagram for Basda::osci::DeviceAgilent6k:
Collaboration graph

Public Member Functions

 DeviceAgilent6k (const Nice::JointPtr &_config)
 constructor More...
 
virtual ~DeviceAgilent6k ()
 virtual destructor More...
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (Basda::DeviceAsync &=Basda::Device::s_async)
 function to reset the device More...
 
virtual void init (Basda::DeviceAsync &=Basda::Device::s_async)
 function to init the device More...
 
virtual void deinit (Basda::DeviceAsync &=Basda::Device::s_async)
 function to deinit the device More...
 
virtual void activate (Basda::DeviceAsync &=s_async)
 activate the device More...
 
virtual void deactivate (Basda::DeviceAsync &=s_async)
 deactivate the device More...
 
virtual void version (void)
 function to get the version More...
 
virtual void updateStatus ()
 
void setTimeRange (const double &timeRange)
 
void setTimeReference (const std::string &timeReference)
 
void setTimeDelay (const double &timeDelay)
 
void setTriggerLevel (const double &triggerLevel)
 
void setChannelRange (int channel, const double &voltRange)
 
void setChannelOffset (int channel, const double &voltOffset)
 
void setTriggerSource (const std::string &triggerSource)
 
void setTriggerMode (const std::string &triggerMode)
 
void setTriggerEdgeSlope (const std::string &slope)
 
virtual bool isReachable ()
 
virtual void setAsReachable (bool state)
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
 DeviceAgilent6k (const Nice::JointPtr &_config)
 constructor More...
 
virtual ~DeviceAgilent6k ()
 virtual destructor More...
 
virtual void open (void)
 function to open the connection to the device. More...
 
virtual void close (void)
 function to close the connection to the device. More...
 
virtual void reset (Basda::DeviceAsync &=Basda::Device::s_async)
 function to reset the device More...
 
virtual void init (Basda::DeviceAsync &=Basda::Device::s_async)
 function to init the device More...
 
virtual void deinit (Basda::DeviceAsync &=Basda::Device::s_async)
 function to deinit the device More...
 
virtual void activate (Basda::DeviceAsync &=s_async)
 activate the device More...
 
virtual void deactivate (Basda::DeviceAsync &=s_async)
 deactivate the device More...
 
virtual void version (void)
 function to get the version More...
 
virtual void updateStatus ()
 
void setTimeRange (const double &timeRange)
 
void setTimeReference (const std::string &timeReference)
 
void setTimeDelay (const double &timeDelay)
 
void setTriggerLevel (const double &triggerLevel)
 
void setChannelRange (int channel, const double &voltRange)
 
void setChannelOffset (int channel, const double &voltOffset)
 
void setTriggerSource (const std::string &triggerSource)
 
void setTriggerMode (const std::string &triggerMode)
 
void setTriggerEdgeSlope (const std::string &slope)
 
virtual bool isReachable ()
 
virtual void setAsReachable (bool state)
 
virtual Nice::JointPtrVectordescription (void)
 function to read the description More...
 
- Public Member Functions inherited from Basda::osci::OsciDevice
 OsciDevice (const Nice::JointPtr &_config)
 
virtual ~OsciDevice ()
 
 OsciDevice (const Nice::JointPtr &_config)
 
virtual ~OsciDevice ()
 
 OsciDevice (const Nice::JointPtr &_config)
 
virtual ~OsciDevice ()
 
- Public Member Functions inherited from Basda::Device
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 
 Device (const Nice::JointPtr &_config)
 constructor. This is an elementary (lazy) action which stores the name and gets configuration. More...
 
virtual ~Device ()
 destructor Does nothing More...
 
virtual void setConfig (const Nice::JointPtr &_config)
 init with config tree ptr More...
 
Nice::JointPtrconfig ()
 retrieve the property tree More...
 
std::string & name ()
 retrieve the name set at ctor time. More...
 

Protected Member Functions

void cleanAfterError ()
 
void handleErrors (const std::string message)
 
void createPropertyTree ()
 
void setPropertiesAsUnknown ()
 
void cleanAfterError ()
 
void handleErrors (const std::string message)
 
void createPropertyTree ()
 
void setPropertiesAsUnknown ()
 

Protected Attributes

Nice::JointPtrVector m_partNodes
 vector containing the children More...
 
std::vector< int > m_channels
 
std::vector< int > m_waveformPoints
 
std::vector< std::string > m_waveformFormat
 
std::vector< Nice::PropertyPtrm_channelDataPropertyPtr
 
Nice::JointPtr m_data
 
- Protected Attributes inherited from Basda::Device
Nice::JointPtr m_config
 
Nice::JointPtr m_cfg
 
Nice::JointPtr m_var
 
std::string m_name
 

Private Attributes

AgilentOsci6kPtr m_oscilloscope
 the instance of the Oscilloscope Driver Class More...
 
std::string m_conAdr
 stores the address of the device currently connected to More...
 
IceUtil::RecMutex m_syncMutex
 
bool m_isReachable
 

Additional Inherited Members

- Static Public Attributes inherited from Basda::Device
static DeviceAsyncImpl s_async
 

Constructor & Destructor Documentation

◆ DeviceAgilent6k() [1/2]

DeviceAgilent6k::DeviceAgilent6k ( const Nice::JointPtr _config)

constructor

Parameters
_configconfiguration tree

◆ ~DeviceAgilent6k() [1/2]

virtual Basda::osci::DeviceAgilent6k::~DeviceAgilent6k ( )
inlinevirtual

virtual destructor

◆ DeviceAgilent6k() [2/2]

Basda::osci::DeviceAgilent6k::DeviceAgilent6k ( const Nice::JointPtr _config)

constructor

Parameters
_configconfiguration tree

◆ ~DeviceAgilent6k() [2/2]

virtual Basda::osci::DeviceAgilent6k::~DeviceAgilent6k ( )
inlinevirtual

virtual destructor

Member Function Documentation

◆ activate() [1/2]

virtual void Basda::osci::DeviceAgilent6k::activate ( Basda::DeviceAsync = s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ activate() [2/2]

virtual void Basda::osci::DeviceAgilent6k::activate ( Basda::DeviceAsync = s_async)
inlinevirtual

activate the device

Implements Basda::Device.

◆ cleanAfterError() [1/2]

void DeviceAgilent6k::cleanAfterError ( )
protected

◆ cleanAfterError() [2/2]

void Basda::osci::DeviceAgilent6k::cleanAfterError ( )
protected

◆ close() [1/2]

virtual void Basda::osci::DeviceAgilent6k::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ close() [2/2]

void DeviceAgilent6k::close ( void  )
virtual

function to close the connection to the device.

Implements Basda::Device.

◆ createPropertyTree() [1/2]

void Basda::osci::DeviceAgilent6k::createPropertyTree ( )
protected

◆ createPropertyTree() [2/2]

void DeviceAgilent6k::createPropertyTree ( )
protected

◆ deactivate() [1/2]

virtual void Basda::osci::DeviceAgilent6k::deactivate ( Basda::DeviceAsync = s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deactivate() [2/2]

virtual void Basda::osci::DeviceAgilent6k::deactivate ( Basda::DeviceAsync = s_async)
inlinevirtual

deactivate the device

Implements Basda::Device.

◆ deinit() [1/2]

void DeviceAgilent6k::deinit ( Basda::DeviceAsync _async = Basda::Device::s_async)
virtual

function to deinit the device

Implements Basda::Device.

◆ deinit() [2/2]

virtual void Basda::osci::DeviceAgilent6k::deinit ( Basda::DeviceAsync = Basda::Device::s_async)
virtual

function to deinit the device

Implements Basda::Device.

◆ description() [1/2]

virtual Nice::JointPtrVector& Basda::osci::DeviceAgilent6k::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

Implements Basda::osci::OsciDevice.

◆ description() [2/2]

virtual Nice::JointPtrVector& Basda::osci::DeviceAgilent6k::description ( void  )
inlinevirtual

function to read the description

Returns
vector containing all informations

Implements Basda::osci::OsciDevice.

◆ handleErrors() [1/2]

void Basda::osci::DeviceAgilent6k::handleErrors ( const std::string  message)
protected

◆ handleErrors() [2/2]

void DeviceAgilent6k::handleErrors ( const std::string  message)
protected

◆ init() [1/2]

void DeviceAgilent6k::init ( Basda::DeviceAsync _async = Basda::Device::s_async)
virtual

function to init the device

Implements Basda::Device.

◆ init() [2/2]

virtual void Basda::osci::DeviceAgilent6k::init ( Basda::DeviceAsync = Basda::Device::s_async)
virtual

function to init the device

Implements Basda::Device.

◆ isReachable() [1/2]

bool DeviceAgilent6k::isReachable ( )
virtual

◆ isReachable() [2/2]

virtual bool Basda::osci::DeviceAgilent6k::isReachable ( )
virtual

◆ open() [1/2]

void DeviceAgilent6k::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ open() [2/2]

virtual void Basda::osci::DeviceAgilent6k::open ( void  )
virtual

function to open the connection to the device.

Implements Basda::Device.

◆ reset() [1/2]

void DeviceAgilent6k::reset ( Basda::DeviceAsync _async = Basda::Device::s_async)
virtual

function to reset the device

Implements Basda::Device.

◆ reset() [2/2]

virtual void Basda::osci::DeviceAgilent6k::reset ( Basda::DeviceAsync = Basda::Device::s_async)
virtual

function to reset the device

Implements Basda::Device.

◆ setAsReachable() [1/2]

void DeviceAgilent6k::setAsReachable ( bool  state)
virtual

◆ setAsReachable() [2/2]

virtual void Basda::osci::DeviceAgilent6k::setAsReachable ( bool  state)
virtual

◆ setChannelOffset() [1/2]

void Basda::osci::DeviceAgilent6k::setChannelOffset ( int  channel,
const double &  voltOffset 
)

◆ setChannelOffset() [2/2]

void DeviceAgilent6k::setChannelOffset ( int  channel,
const double &  voltOffset 
)

◆ setChannelRange() [1/2]

void Basda::osci::DeviceAgilent6k::setChannelRange ( int  channel,
const double &  voltRange 
)

◆ setChannelRange() [2/2]

void DeviceAgilent6k::setChannelRange ( int  channel,
const double &  voltRange 
)

◆ setPropertiesAsUnknown() [1/2]

void Basda::osci::DeviceAgilent6k::setPropertiesAsUnknown ( )
protected

◆ setPropertiesAsUnknown() [2/2]

void DeviceAgilent6k::setPropertiesAsUnknown ( )
protected

◆ setTimeDelay() [1/2]

void DeviceAgilent6k::setTimeDelay ( const double &  timeDelay)

◆ setTimeDelay() [2/2]

void Basda::osci::DeviceAgilent6k::setTimeDelay ( const double &  timeDelay)

◆ setTimeRange() [1/2]

void Basda::osci::DeviceAgilent6k::setTimeRange ( const double &  timeRange)

◆ setTimeRange() [2/2]

void DeviceAgilent6k::setTimeRange ( const double &  timeRange)

◆ setTimeReference() [1/2]

void Basda::osci::DeviceAgilent6k::setTimeReference ( const std::string &  timeReference)

◆ setTimeReference() [2/2]

void DeviceAgilent6k::setTimeReference ( const std::string &  timeReference)

◆ setTriggerEdgeSlope() [1/2]

void DeviceAgilent6k::setTriggerEdgeSlope ( const std::string &  slope)

◆ setTriggerEdgeSlope() [2/2]

void Basda::osci::DeviceAgilent6k::setTriggerEdgeSlope ( const std::string &  slope)

◆ setTriggerLevel() [1/2]

void Basda::osci::DeviceAgilent6k::setTriggerLevel ( const double &  triggerLevel)

◆ setTriggerLevel() [2/2]

void DeviceAgilent6k::setTriggerLevel ( const double &  triggerLevel)

◆ setTriggerMode() [1/2]

void DeviceAgilent6k::setTriggerMode ( const std::string &  triggerMode)

◆ setTriggerMode() [2/2]

void Basda::osci::DeviceAgilent6k::setTriggerMode ( const std::string &  triggerMode)

◆ setTriggerSource() [1/2]

void Basda::osci::DeviceAgilent6k::setTriggerSource ( const std::string &  triggerSource)

◆ setTriggerSource() [2/2]

void DeviceAgilent6k::setTriggerSource ( const std::string &  triggerSource)

◆ updateStatus() [1/2]

virtual void Basda::osci::DeviceAgilent6k::updateStatus ( )
virtual

◆ updateStatus() [2/2]

void DeviceAgilent6k::updateStatus ( )
virtual

◆ version() [1/2]

virtual void Basda::osci::DeviceAgilent6k::version ( void  )
virtual

function to get the version

Implements Basda::Device.

◆ version() [2/2]

void DeviceAgilent6k::version ( void  )
virtual

function to get the version

Implements Basda::Device.

Member Data Documentation

◆ m_channelDataPropertyPtr

std::vector< Nice::PropertyPtr > Basda::osci::DeviceAgilent6k::m_channelDataPropertyPtr
protected

◆ m_channels

std::vector< int > Basda::osci::DeviceAgilent6k::m_channels
protected

◆ m_conAdr

std::string Basda::osci::DeviceAgilent6k::m_conAdr
private

stores the address of the device currently connected to

◆ m_data

Nice::JointPtr Basda::osci::DeviceAgilent6k::m_data
protected

◆ m_isReachable

bool Basda::osci::DeviceAgilent6k::m_isReachable
private

◆ m_oscilloscope

AgilentOsci6kPtr Basda::osci::DeviceAgilent6k::m_oscilloscope
private

the instance of the Oscilloscope Driver Class

◆ m_partNodes

Nice::JointPtrVector Basda::osci::DeviceAgilent6k::m_partNodes
protected

vector containing the children

◆ m_syncMutex

IceUtil::RecMutex Basda::osci::DeviceAgilent6k::m_syncMutex
private

◆ m_waveformFormat

std::vector< std::string > Basda::osci::DeviceAgilent6k::m_waveformFormat
protected

◆ m_waveformPoints

std::vector< int > Basda::osci::DeviceAgilent6k::m_waveformPoints
protected

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