pearu / pylibnidaqmx

a Python wrapper to libnidaqmx library
Other
10 stars 9 forks source link

Could not access device more than one time #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by vascoten...@gmail.com on 19 Oct 2012 at 9:39

Attachments:

hoechenberger commented 8 years ago

Cannot replicate on Win 7, 64-bit, Anaconda 32-bit if waiting sufficiently long between 1st and 2nd execution. Closing for now. Please re-open if the issue still persists.