Physical output quantity added in device info
This commit is contained in:
parent
e3e8d75e0c
commit
30992add71
@ -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;
|
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
|
* @brief String representation of DeviceInfo
|
||||||
*
|
*
|
||||||
|
@ -629,6 +629,8 @@ void fillUlDaqDeviceInfo(std::vector<DeviceInfo> &devinfolist) {
|
|||||||
name += string(descriptor.productName) + " " + string(descriptor.uniqueId);
|
name += string(descriptor.productName) + " " + string(descriptor.uniqueId);
|
||||||
devinfo.device_name = std::move(name);
|
devinfo.device_name = std::move(name);
|
||||||
|
|
||||||
|
devinfo.physicalOutputQty = DaqChannel::Qty::Voltage;
|
||||||
|
|
||||||
devinfo.api_specific_devindex = i;
|
devinfo.api_specific_devindex = i;
|
||||||
devinfo.availableDataTypes.push_back(
|
devinfo.availableDataTypes.push_back(
|
||||||
DataTypeDescriptor::DataType::dtype_fl64);
|
DataTypeDescriptor::DataType::dtype_fl64);
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
#include <pybind11/numpy.h>
|
|
||||||
#include <pybind11/stl.h>
|
#include <pybind11/stl.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "lasp_deviceinfo.h"
|
#include "lasp_deviceinfo.h"
|
||||||
@ -36,5 +35,7 @@ void init_deviceinfo(py::module& m) {
|
|||||||
devinfo.def_readonly("hasInputACCouplingSwitch",
|
devinfo.def_readonly("hasInputACCouplingSwitch",
|
||||||
&DeviceInfo::hasInputACCouplingSwitch);
|
&DeviceInfo::hasInputACCouplingSwitch);
|
||||||
|
|
||||||
|
devinfo.def_readonly("physicalOutputQty", &DeviceInfo::physicalOutputQty);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user