18 py::class_<BasicSample>(m,
"BasicSample")
20 .def(py::init<typename BasicSample::DataType>())
21 .def(py::init<typename BasicSample::DataType, typename BasicSample::DataType>())
25 py::enum_<DataStreamInstrumentData::UnitType>(m,
"UnitType")
34 py::bind_vector<decltype(DynExpInstr::PyDataStreamInstrument::Samples)>(m,
"SampleListType");
36 py::class_<PyDataStreamInstrument>(m,
"DataStreamInstrument")
51 py::exec(
"import PyModuleDataStreamInstrument as DataStreamInstrument");
PYBIND11_MAKE_OPAQUE(decltype(DynExpInstr::PyDataStreamInstrument::Samples))
PYBIND11_EMBEDDED_MODULE(PyModuleDataStreamInstrument, m)
Creates an embedded Python module PyModuleDataStreamInstrument which contains DynExpInstr::BasicSampl...
Implementation of mappings between DynExp instruments and corresponding embedded Python modules makin...
@ Ampere
Electric current in Ampere (A)
@ Arbitrary
Arbitrary units (a.u.)
@ LogicLevel
Logic level (TTL) units (1 or 0)
@ Power_W
Power in Watt (W)
@ Volt
Voltage in Volt (V)
@ Counts
Count rate in counts per second (cps)
bool IsTimeUsed
Contains the result of DynExpInstr::DataStreamBase::IsBasicSampleTimeUsed().
static void import()
Make the Python interpreter import this module as PyModuleDataStreamInstrument. GIL has to be acquire...
size_t StreamSizeWrite
Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeWrite().
size_t NumSamplesWritten
Contains the result of DynExpInstr::DataStreamBase::GetNumSamplesWritten().
size_t StreamSizeRead
Contains the result of DynExpInstr::DataStreamBase::GetStreamSizeRead().
DataStreamBase::BasicSampleListType Samples
Samples of the data stream instrument.
size_t CalcLastConsumedSampleID(size_t NumConsumedSamples)
Allows to calculate the ID of the last consumed sample based on the amount of samples consumed from t...
DataStreamInstrumentData::UnitType ValueUnit
Refer to DynExpInstr::DataStreamInstrumentData::UnitType.
DynExp's instrument namespace contains the implementation of DynExp instruments which extend DynExp's...
Accumulates include statements to provide a precompiled header.
DataType Value
Value in a unit as specified by the class derived from DataStreamInstrument.
DataType Time
Time in seconds.