Issue 43 in pylibnidaqmx: DigitalInputTask

15 views
Skip to first unread message

pylibn...@googlecode.com

unread,
Jul 14, 2014, 2:48:05 PM7/14/14
to pylibnida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 43 by theknigh...@gmail.com: DigitalInputTask
http://code.google.com/p/pylibnidaqmx/issues/detail?id=43

What steps will reproduce the problem?
from nidaqmx import AnalogInputTask
from nidaqmx import DigitalInputTask
import numpy as np
task = AnalogInputTask()
task.create_voltage_channel('Dev1/ai0', 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
ditask = DigitalInputTask()
ditask.create_channel('Dev1/port0/line0', name= 'line06' )
ditask.configure_timing_sample_clock(rate = 1000.0)
didata = task.read(2000, fill_mode='group_by_channel')
del ditask
from pylab import plot, show
plot (didata)
show ()

What is the expected output? What do you see instead?
Receive the Data Input data.

What version of the product are you using? On what operating system?
I am using the the lastest verison on the Windows 7 OS.

Please provide any additional information below.
i recieve this error:
"""
Requested value is not a supported value for this property. The property
value
may be invalid because it conflicts with another property. Property:
DAQmx_SampTimingType Requested Value: DAQmx_Val_SampClk You Can Select:
DAQmx_Val_OnDemand Task Name: _unnamedTask<2> Status Code: -200077
"""

--
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,
Aug 1, 2014, 4:40:33 AM8/1/14
to pylibnida...@googlegroups.com

Comment #1 on issue 43 by richard.hoechenberger: DigitalInputTask
http://code.google.com/p/pylibnidaqmx/issues/detail?id=43

Which device is that? Seems like it cannot use a sample clock when
acquiring digital data.
Reply all
Reply to author
Forward
0 new messages