Physical output quantity added in device info

This commit is contained in:
Anne de Jong 2022-10-21 22:30:06 +02:00
parent e3e8d75e0c
commit 30992add71
3 changed files with 17 additions and 2 deletions

View File

@ -97,10 +97,22 @@ public:
}
/**
* @brief Whether the device has an internal monitor of the output signal.
* @brief Whether the device has an internal monitor of the output signal. If
* true, the device is able to monitor output signals internally and able to
* present output signals as virtual input signals. This only works together
* Daq's that are able to run in full duplex mode.
*/
bool hasInternalOutputMonitor = false;
/**
* @brief The physical quantity of the output signal. For 'normal' audio
* devices, this is typically a 'number' between +/- full scale. For some
* devices however, the output quantity corresponds to a physical signal,
* such a Volts.
*/
DaqChannel::Qty physicalOutputQty = DaqChannel::Qty::Number;
/**
* @brief String representation of DeviceInfo
*

View File

@ -629,6 +629,8 @@ void fillUlDaqDeviceInfo(std::vector<DeviceInfo> &devinfolist) {
name += string(descriptor.productName) + " " + string(descriptor.uniqueId);
devinfo.device_name = std::move(name);
devinfo.physicalOutputQty = DaqChannel::Qty::Voltage;
devinfo.api_specific_devindex = i;
devinfo.availableDataTypes.push_back(
DataTypeDescriptor::DataType::dtype_fl64);

View File

@ -1,4 +1,3 @@
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include <stdint.h>
#include "lasp_deviceinfo.h"
@ -36,5 +35,7 @@ void init_deviceinfo(py::module& m) {
devinfo.def_readonly("hasInputACCouplingSwitch",
&DeviceInfo::hasInputACCouplingSwitch);
devinfo.def_readonly("physicalOutputQty", &DeviceInfo::physicalOutputQty);
}