2#include <pybind11/numpy.h>
3#include <pybind11/stl.h>
7namespace py = pybind11;
12 py::class_<Daq, DaqConfiguration, DeviceInfo> daq(m,
"Daq");
15 py::class_<Daq::StreamStatus> ss(daq,
"StreamStatus");
21 py::enum_<Daq::StreamStatus::StreamError>(ss,
"StreamError")
34 py::arg(
"include_monitor") =
true);
bool runningOK() const
Returns true if everything is OK with a certain stream and the stream is running.
bool error() const
Check if stream has error.
std::string errorMsg() const
us neninchannels(bool include_monitorchannels=true) const
Returns the number of enabled input channels.
double samplerate() const
Returns current sample rate.
DataTypeDescriptor::DataType dataType() const
Returns datatype (enum) corresponding to the datatype of the samples.
virtual StreamStatus getStreamStatus() const =0
Get stream status corresponding to current DAQ.
us framesPerBlock() const
The number of frames that is send in a block of DaqData.
us nenoutchannels() const
Returns the number of enabled output channels.
void init_daq(py::module &m)