|
Cat
|
#include <inc/NI6008.h>
Public Member Functions | |
| NI6008 () | |
| Standard constructor. More... | |
| virtual | ~NI6008 () |
| Destructor. More... | |
| void | help () |
| StatusCode | init () |
| void | reset () |
| void | update () |
| std::string | cmd (std::string, std::string) |
| int | port () |
| void | setPort (int portno) |
| std::string | hostname () |
| void | setHostname (std::string host) |
| std::vector< double > | ai () |
| int | di () |
| StatusCode | addDevice (std::string path) |
| std::string | device (unsigned int dev) |
| StatusCode | clearDevice () |
| unsigned int | numberOfDevices () |
Public Member Functions inherited from Element | |
| Element () | |
| Standard constructor. More... | |
| virtual | ~Element () |
| Destructor. More... | |
| void | recursiveInitElement () |
| void | recursiveInitCommunications () |
| StatusCode | setConnection (Hierarchy *) |
| Hierarchy * | connection () |
Public Member Functions inherited from Hierarchy | |
| Hierarchy () | |
| Standard constructor. More... | |
| virtual | ~Hierarchy () |
| Destructor. More... | |
| void | clear () |
| void | setParent (Hierarchy *parent) |
| Hierarchy * | parent () |
| Hierarchy * | parent (std::string) |
| Hierarchy * | origin () |
| virtual void | addChild (Hierarchy *element) |
| std::vector< Hierarchy * > | children () |
| Hierarchy * | child (std::string) |
| Hierarchy * | childTyped (std::string) |
| unsigned long | numberOfChildren () |
| bool | hasChildren () |
| void | delChild (Hierarchy *) |
| void | delChild (std::string) |
| std::string | path (std::string=std::string("")) |
| std::string | pathTyped (std::string=std::string("")) |
| void | tree (std::string indent=std::string("")) |
| void | tree () |
Public Member Functions inherited from Object | |
| Object () | |
| Standard constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| std::string | name () const |
| std::string | type () |
| unsigned char | id () |
| std::string | title () |
| void | msgSvc (int level, std::string msg, std::string name) |
| void | msg (std::string mymsg) |
| void | verbose (std::string mymsg) |
| void | debug (std::string mymsg) |
| void | info (std::string mymsg) |
| void | warning (std::string mymsg) |
| void | error (std::string mymsg) |
| void | fatal (std::string mymsg) |
| void | msg (std::string mymsg, std::string name) |
| void | verbose (std::string mymsg, std::string name) |
| void | debug (std::string mymsg, std::string name) |
| void | info (std::string mymsg, std::string name) |
| void | warning (std::string mymsg, std::string name) |
| void | error (std::string mymsg, std::string name) |
| void | fatal (std::string mymsg, std::string name) |
| void | setName (std::string name) |
| void | setType (std::string type) |
| void | setId (unsigned char id) |
| void | setTitle (std::string title) |
| void | setDllName (std::string dllName) |
| std::string | dllName () |
Public Member Functions inherited from Attrib | |
| Attrib () | |
| Standard constructor. More... | |
| virtual | ~Attrib () |
| Destructor. More... | |
| bool | is (int attribut) |
| void | add (int attribut) |
| void | remove (int attribut) |
| std::string | attributs () |
Protected Attributes | |
| int | m_portno |
| std::string | m_host |
| std::vector< std::string > | m_device |
| int | m_sockfd |
| struct sockaddr_in | m_serv_addr |
| struct hostent * | m_server |
| char | buffer [256] |
Protected Attributes inherited from Element | |
| Hierarchy * | m_connection |
Protected Attributes inherited from Attrib | |
| std::string | m_attribString [10] |
Additional Inherited Members | |
Public Types inherited from Attrib | |
| enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
| NI6008::NI6008 | ( | ) |
Standard constructor.
Definition at line 22 of file NI6008.cpp.
References application(), Application::hostname(), m_host, Object::setName(), and Object::setType().
|
virtual |
|
inline |
Definition at line 114 of file NI6008.h.
References Object::info(), m_device, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
| std::vector<double> NI6008::ai | ( | ) |
Referenced by setHostname().
|
inline |
Definition at line 128 of file NI6008.h.
References m_device, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
| std::string NI6008::cmd | ( | std::string | dev, |
| std::string | mess | ||
| ) |
Definition at line 38 of file NI6008.cpp.
References buffer, Object::error(), and m_sockfd.
Referenced by BOOST_PYTHON_MODULE(), CurrentMeasurement::execute(), ADCMeasurement::execute(), and update().
|
inline |
Definition at line 120 of file NI6008.h.
References m_device, and Object::warning().
Referenced by BOOST_PYTHON_MODULE(), CurrentMeasurement::execute(), and CurrentMeasurement::initialize().
| int NI6008::di | ( | ) |
Referenced by setHostname().
|
inlinevirtual |
printout help for the element
Implements Element.
Definition at line 37 of file NI6008.h.
References Object::info(), and Object::name().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Define/get device Define/get server hostname
Definition at line 108 of file NI6008.h.
References m_host.
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
init the component
Implements Element.
Definition at line 43 of file NI6008.h.
References Object::error(), StatusCode::FAILURE, Object::info(), itos(), m_host, m_portno, m_serv_addr, m_server, m_sockfd, Object::name(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
Definition at line 133 of file NI6008.h.
References m_device.
Referenced by BOOST_PYTHON_MODULE(), CurrentMeasurement::execute(), CurrentMeasurement::initialize(), and ADCMeasurement::numberOfDevices().
|
inline |
Define/get server port number
Definition at line 96 of file NI6008.h.
References m_portno.
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
Resets the Element so that is is in a standard and safe situation. Different from Element::init which configure the Element. Element::reset() is more an Emergency pull. It is often/usually called by the recursiveInitElement method at the start of the program.
Implements Element.
Definition at line 81 of file NI6008.h.
References Object::info(), and Object::name().
Referenced by BOOST_PYTHON_MODULE().
|
inline |
|
inline |
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 86 of file NI6008.h.
References cmd(), Object::info(), and Object::name().
Referenced by BOOST_PYTHON_MODULE(), AppFrame.AppFrame::deleteHardware(), ConfFrame.ConfFrame::onChange(), GraphFrame.GraphFrame::onChange(), CfgFrame.CfgFrame::onChange(), ConfFrame.ConfFrame::onEdit(), AppFrame.AppFrame::onLoad(), ConfFrame.ConfFrame::onReLoad(), GraphFrame.GraphFrame::onReLoad(), CfgFrame.CfgFrame::onReLoad(), and AppFrame.AppFrame::onReLoad().
|
protected |
Definition at line 140 of file NI6008.h.
Referenced by addDevice(), clearDevice(), device(), and numberOfDevices().
|
protected |
Definition at line 139 of file NI6008.h.
Referenced by hostname(), init(), NI6008(), and setHostname().
|
protected |
|
protected |
|
protected |
|
protected |
1.8.13