Code Monkey home page Code Monkey logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Thanks! I have added a note to the main web page.

Original comment by pearu.peterson on 26 Feb 2010 at 9:35

  • Added labels: Type-Other
  • Removed labels: Type-Defect

from pylibnidaqmx.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Hi,

Your scripts are really useful. I'm also trying to test pylibnidaqmx on windows 
xp with DAQmx 8.8. However I keep running into runtime errors (see below for an 
example). You say that:

"Also of note, I have a cython interface file to the raw DAQmx library which
works (at least on windows).  It's possible to use this together with
pylibnidaqmx."

How did you set this up?

Cheers for any help!

Rob Sewell

Traceback (most recent call last):
  File "C:\Documents and Settings\rsewell\Desktop\pylibnidaq examples\trunk\correlated_ao_dio.py", line 17, in <module>
    atask.write(adata, auto_start=False)
  File "C:\Python26\lib\site-packages\nidaqmx\libnidaqmx.py", line 2695, in write
    float64 (timeout), layout_val, data.ctypes.data, ctypes.byref(samples_written), None)
  File "C:\Python26\lib\site-packages\nidaqmx\libnidaqmx.py", line 187, in CALL
    r = CHK(r, funcname, *new_args)
  File "C:\Python26\lib\site-packages\nidaqmx\libnidaqmx.py", line 168, in CHK
    raise RuntimeError('%s%s:%s' % (funcname,args, text))
RuntimeError: DAQmxWriteAnalogF64(AnalogOutputTask('_unnamedTask<0>'), 
c_long(1000), c_ulong(0L), c_double(10.0), 1, 214652888, <cparam 'P' 
(0CC0ECD8)>, None):
  NI Platform Services:  The specified resource is reserved. The operation could
  not be completed as specified.
  ----------

Original comment by [email protected] on 22 Oct 2010 at 2:04

from pylibnidaqmx.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
@Rob Sewell
Your error looks like something that happens when your board either doesn't 
have a resource or the last task is still active in some way. You might want to 
try it again after reseting the board.

If you'd like to look at the cython implementation, I compile it on windows xp 
with the pythonxy distribution.  My bitbucket repo is 

https://[email protected]/cleemesser/cydaqmx

The main advantage I've seen with it is for more complicated acquisitions.  But 
I haven't needed to do those recently.  I haven't compiled it under linux.

Original comment by [email protected] on 22 Oct 2010 at 3:47

from pylibnidaqmx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.