1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

workaround for init function call

This commit is contained in:
Manuel Pitz 2018-09-25 15:22:50 +02:00
parent 103d2047e4
commit ffbbb9bd51
2 changed files with 7 additions and 3 deletions

View file

@ -1,10 +1,12 @@
nodes = {
ul201 = {
type = "uldaq"
interface_type = "usb"
in = {
range = "bipolar-10",
input_mode = "single-ended"
signals = (
{ name = "ch0", type = "float", channel = 0, range = "bipolar-10" }
{ name = "ch0", type = "float", channel = 0, }
)
sample_rate = 1000,

View file

@ -309,9 +309,11 @@ int uldaq_start(struct node *n)
{
struct uldaq *u = (struct uldaq *) n->_vd;
u->in.scan_options = (ScanOption) (SO_DEFAULTIO | SO_CONTINUOUS);//it looks like the init function is not called
unsigned num_devs = ULDAQ_MAX_DEV_COUNT;
DaqDeviceDescriptor descriptors[num_devs];
ScanStatus status;
ScanStatus status;
TransferStatus transfer_status;
UlError err;