diff --git a/lib/nodes/uldaq.c b/lib/nodes/uldaq.c index 7875087be..d05e18f65 100644 --- a/lib/nodes/uldaq.c +++ b/lib/nodes/uldaq.c @@ -165,11 +165,8 @@ int uldaq_start(struct node *n) DaqDeviceDescriptor descriptors[ULDAQ_MAX_DEV_COUNT]; Range ranges[ULDAQ_MAX_RANGE_COUNT]; - unsigned int num_devs = 1, num_ranges = 0;; - int descriptor_index = 0; UlError err = ERR_NO_ERROR; int chanCount = 1;//change this to use more than one channel - int index = 0; // allocate a buffer to receive the data u->in.buffer = (double *) alloc(list_length(&n->signals) * n->in.vectorize * sizeof(double)); @@ -212,7 +209,7 @@ int uldaq_start(struct node *n) // start the acquisition // when using the queue, the lowChan, highChan, u->in.input_mode, and range // parameters are ignored since they are specified in u->queues - err = ulAInScan(u->device_handle, 0, 0, u->in.input_mode, 0, n->in.vectorize, &(u->in.sample_rate), u->in.scan_options, u->in.flags, u->in.buffer); + err = ulAInScan(u->device_handle, 0, 0, u->in.input_mode, 0, u->in.sample_count, &(u->in.sample_rate), u->in.scan_options, u->in.flags, u->in.buffer); if (err == ERR_NO_ERROR) { ScanStatus status; TransferStatus transferStatus;