Cat
|
#include <MSOxxxx.h>
Public Member Functions | |
MSOxxxx () | |
void | configTCPIP (string ip, int port) |
StatusCode | open () |
void | closeConnection () |
void | setDebugMode (bool debug) |
StatusCode | channelScale (int ch, double value) |
StatusCode | channelOffset (int ch, double value) |
StatusCode | channelDisplay (int ch, bool display) |
StatusCode | channelDisplayName (int ch, string name) |
StatusCode | timeBaseScale (double secsPerDiv) |
StatusCode | timeBaseOffset (double seconds) |
StatusCode | triggerAuto () |
StatusCode | triggerConfig (bool slope, int ch, double level) |
StatusCode | setupJitter (int ch) |
StatusCode | setupAvgVoltage (int ch) |
StatusCode | setupDeltaTime (int chA, int chB, int edge) |
PyObject * | getStatistics (int nMinMeas) |
StatusCode | labelDisplay (bool display) |
PyObject * | waveformCapture (int ch) |
PyObject * | id () |
StatusCode | run () |
StatusCode | stop () |
~MSOxxxx () | |
void | help () |
StatusCode | init () |
void | reset () |
void | update () |
![]() | |
Element () | |
Standard constructor. More... | |
virtual | ~Element () |
Destructor. More... | |
void | recursiveInitElement () |
void | recursiveInitCommunications () |
StatusCode | setConnection (Hierarchy *) |
Hierarchy * | connection () |
![]() | |
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 () |
![]() | |
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 () |
![]() | |
Attrib () | |
Standard constructor. More... | |
virtual | ~Attrib () |
Destructor. More... | |
bool | is (int attribut) |
void | add (int attribut) |
void | remove (int attribut) |
std::string | attributs () |
Private Member Functions | |
bool | getTimeBase (double *xInc, double *xOrg) |
bool | send (string msg) |
int | recv (string *rxItems, string spacer) |
int | split (string str, string *splitStr, string delimiter) |
string | ftos (double) |
Private Attributes | |
string | ipAddress |
int | portNumber |
int | sockfd |
char | rxBuffer [10485760] |
string | rxItems [65536] |
bool | debugMode |
bool | err |
Additional Inherited Members | |
![]() | |
enum | Attribut { UNDEFINED, PASSIVE, ACTIVE, INTERFACE, IO, IODATA, ELEMENT, HARDWARE, PROCESSUS, SOFTWARE } |
![]() | |
Hierarchy * | m_connection |
![]() | |
std::string | m_attribString [10] |
MSOxxxx::MSOxxxx | ( | ) |
Definition at line 16 of file MSOxxxx.cpp.
References Attrib::add(), Object::debug(), DEBUG_MODE, debugMode, DEFAULT_IP_ADDRESS, DEFAULT_PORT, Attrib::ELEMENT, Attrib::HARDWARE, ipAddress, portNumber, Object::setId(), and Object::setType().
StatusCode MSOxxxx::channelDisplay | ( | int | ch, |
bool | display | ||
) |
Definition at line 151 of file MSOxxxx.cpp.
References StatusCode::FAILURE, itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::channelDisplayName | ( | int | ch, |
string | name | ||
) |
Definition at line 162 of file MSOxxxx.cpp.
References StatusCode::FAILURE, itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::channelOffset | ( | int | ch, |
double | value | ||
) |
Definition at line 144 of file MSOxxxx.cpp.
References StatusCode::FAILURE, ftos(), itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::channelScale | ( | int | ch, |
double | value | ||
) |
Definition at line 137 of file MSOxxxx.cpp.
References StatusCode::FAILURE, ftos(), itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inline |
void MSOxxxx::configTCPIP | ( | string | ip, |
int | port | ||
) |
Definition at line 34 of file MSOxxxx.cpp.
References ipAddress, and portNumber.
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 420 of file MSOxxxx.cpp.
References cat::f.
Referenced by channelOffset(), channelScale(), timeBaseOffset(), timeBaseScale(), and triggerConfig().
PyObject * MSOxxxx::getStatistics | ( | int | nMinMeas | ) |
Definition at line 311 of file MSOxxxx.cpp.
References Object::error(), recv(), rxItems, and send().
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 187 of file MSOxxxx.cpp.
References recv(), rxItems, and send().
Referenced by waveformCapture().
|
inlinevirtual |
PyObject * MSOxxxx::id | ( | ) |
Definition at line 370 of file MSOxxxx.cpp.
References Object::info(), recv(), rxItems, and send().
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
init the component
Implements Element.
Definition at line 97 of file MSOxxxx.h.
References shell::reset(), and StatusCode::SUCCESS.
StatusCode MSOxxxx::labelDisplay | ( | bool | display | ) |
Definition at line 355 of file MSOxxxx.cpp.
References StatusCode::FAILURE, send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::open | ( | ) |
Definition at line 42 of file MSOxxxx.cpp.
References Object::error(), StatusCode::FAILURE, Object::info(), ipAddress, itos(), portNumber, sockfd, and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 97 of file MSOxxxx.cpp.
References debugMode, Object::error(), Object::info(), MAX_LEN, rxBuffer, sockfd, and split().
Referenced by getStatistics(), getTimeBase(), id(), and waveformCapture().
|
virtual |
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 427 of file MSOxxxx.cpp.
StatusCode MSOxxxx::run | ( | ) |
Definition at line 390 of file MSOxxxx.cpp.
References StatusCode::FAILURE, send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 83 of file MSOxxxx.cpp.
References debugMode, Object::error(), Object::info(), and sockfd.
Referenced by channelDisplay(), channelDisplayName(), channelOffset(), channelScale(), getStatistics(), getTimeBase(), id(), labelDisplay(), run(), setupAvgVoltage(), setupDeltaTime(), setupJitter(), stop(), timeBaseOffset(), timeBaseScale(), triggerAuto(), triggerConfig(), and waveformCapture().
|
inline |
Definition at line 51 of file MSOxxxx.h.
References shell::run().
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::setupAvgVoltage | ( | int | ch | ) |
Definition at line 265 of file MSOxxxx.cpp.
References StatusCode::FAILURE, itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::setupDeltaTime | ( | int | chA, |
int | chB, | ||
int | edge | ||
) |
Definition at line 252 of file MSOxxxx.cpp.
References StatusCode::FAILURE, itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::setupJitter | ( | int | ch | ) |
Definition at line 238 of file MSOxxxx.cpp.
References StatusCode::FAILURE, itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
private |
Definition at line 405 of file MSOxxxx.cpp.
Referenced by recv().
StatusCode MSOxxxx::stop | ( | ) |
Definition at line 397 of file MSOxxxx.cpp.
References StatusCode::FAILURE, send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::timeBaseOffset | ( | double | seconds | ) |
Definition at line 180 of file MSOxxxx.cpp.
References StatusCode::FAILURE, ftos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::timeBaseScale | ( | double | secsPerDiv | ) |
Definition at line 173 of file MSOxxxx.cpp.
References StatusCode::FAILURE, ftos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::triggerAuto | ( | ) |
Definition at line 214 of file MSOxxxx.cpp.
References StatusCode::FAILURE, send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
StatusCode MSOxxxx::triggerConfig | ( | bool | slope, |
int | ch, | ||
double | level | ||
) |
Definition at line 221 of file MSOxxxx.cpp.
References StatusCode::FAILURE, ftos(), itos(), send(), and StatusCode::SUCCESS.
Referenced by BOOST_PYTHON_MODULE().
|
inlinevirtual |
Update the Element configuration from the actual hardware
Implements Element.
Definition at line 113 of file MSOxxxx.h.
Referenced by A3PE_BitFlip.A3PE_BitFlip::__init__(), Acquisition.Acquisition::__init__(), EmulateFE.EmulateFE::__init__(), 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().
PyObject * MSOxxxx::waveformCapture | ( | int | ch | ) |
Definition at line 277 of file MSOxxxx.cpp.
References getTimeBase(), itos(), recv(), rxItems, and send().
Referenced by BOOST_PYTHON_MODULE().
|
private |
|
private |
Definition at line 115 of file MSOxxxx.h.
Referenced by configTCPIP(), MSOxxxx(), and open().
|
private |
Definition at line 120 of file MSOxxxx.h.
Referenced by configTCPIP(), MSOxxxx(), and open().
|
private |
|
private |
Definition at line 124 of file MSOxxxx.h.
Referenced by getStatistics(), getTimeBase(), id(), and waveformCapture().
|
private |