Issue 42 in pylibnidaqmx: Problems Performing Digital Input and Output Tasks

5 views
Skip to first unread message

pylibn...@googlecode.com

unread,
Jul 9, 2014, 11:23:16 AM7/9/14
to pylibnida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 42 by theknigh...@gmail.com: Problems Performing Digital Input
and Output Tasks
http://code.google.com/p/pylibnidaqmx/issues/detail?id=42

What steps will reproduce the problem?

from nidaqmx import DigitalInputTask
import numpy as np
task = DigitalInputTask
task.create_channel('Dev1/port0/line0:7', name='', grouping = 'per_line')
task.configure_timing_sample_clock(rate = 1000.0)
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?

I want to read/write Digital Signal and I receive this error for the
reading:
"""
TypeError: unbound method create_channel() must be called with
DigitalInputTask instance as first argument (got str instance instead)
What version of the product are you using? On what operating system?
I am using the latest version
"""

Please provide any additional information below.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

pylibn...@googlecode.com

unread,
Jul 10, 2014, 1:31:33 AM7/10/14
to pylibnida...@googlegroups.com

Comment #1 on issue 42 by pearu.peterson: Problems Performing Digital Input
Use
task = DigitalInputTask()
instead of
task = DigitalInputTask

pylibn...@googlecode.com

unread,
Jul 10, 2014, 10:44:01 AM7/10/14
to pylibnida...@googlegroups.com

Comment #2 on issue 42 by theknigh...@gmail.com: Problems Performing
Thank you, that did seem to fix the problem. Are the Analog Codes for the
Examples, comparative to the Digital Codes or completely different? Because
i am assuming I can you the same code and just change some of the vales.
Please tell me if this is an error to assume.
Reply all
Reply to author
Forward
0 new messages