Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 33 by
vascoten...@gmail.com: Could not access device more than
one time
http://code.google.com/p/pylibnidaqmx/issues/detail?id=33
What steps will reproduce the problem?
1. Run twice:
>>> from nidaqmx import AnalogInputTask
>>> import numpy as np
>>> task = AnalogInputTask()
>>> task.create_voltage_channel('Dev1/ai16', terminal = 'rse',
>>> min_val=-10.0, max_val=10.0)
>>> task.configure_timing_sample_clock(rate = 1000.0)
>>> task.start()
>>> data = task.read(2000, fill_mode='group_by_channel')
>>> del task
>>> from pylab import plot, show
>>> plot (data)
>>> show ()
What is the expected output? What do you see instead?
Do 2 measurements. First measurement succeeds, second fails:
RuntimeError: DAQmxReadAnalogF64(AnalogInputTask('_unnamedTask<0>'), 2000,
c_double(10.0), 0, 41860352, 2000, <cparam 'P' (0224D558)>, None):
Onboard device memory overflow. Because of system and/or bus-bandwidth
limitations, the driver could not read data from the device fast enough
to keep
up with the device throughput. Reduce the sample rate, or reduce the
number of
programs your computer is executing concurrently.
----------
What version of the product are you using? On what operating system?
Latest git + windows7 64 bit
Please provide any additional information below.
See attachemnt for full error.
I can run this twice:
http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx
Attachments:
error.log 1017 bytes