|
TOBI Interface A
0.1
|
This is an example how to build an fill a TiA data packet with raw samples and set needed parameters.
// STL #include <map> #include <vector> #include <string> //boost #include <boost/cstdint.hpp> //TiA #include "tia/defines.h" #include "tia/data_packet.h" int main(int argc, const char* argv[]) { try { tobiss::DataPacket packet; // TODO: write example code how to build a packet } // possible exceptions catch(std::exception& e) { } catch(boost::exception& e) { } catch(...) { } }