TOBI Interface A  0.1
void tia::DataPacket3Impl::insertDataBlock ( std::vector< double >  v,
boost::uint32_t  signal_flag,
boost::uint16_t  blocks,
bool  prepend = false 
) [virtual]

Insert data (only one signal type) from a hardware device into the DataPacket (will be automatically placed correct).

Parameters:
[in]vVector containing homogenous samples (only one signal type).
[in]signal_flagThe flag specifiying the inserted signal.
[in]blocksThe number of blocks, the vector contains.
[in]prependPrepend the data, otherwise append (default), if Signaltype already inserted.
Exceptions:
std::logic_errorif flags in the DataPacket on not OK, if flag already defined or if more than on flag passed

This mehtod inserts a homogenous sample vector (consiting of only ONE single signal type) into the DataPacket. The vector is automatically correctly placed in the Packet, respective to its signal type.

Warning:
Up to the DataPacket can only store one signal type from only one device. If two devices are delivering the same signal type, an exception is thrown. (Could be avoided, if the second device delivers a user-type signal.)
Todo:
If needed: Implementing the possibility to store the same signal type comming from different devices.

Implements tia::DataPacket.

Definition at line 225 of file data_packet_3_impl.cpp.

+ Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations