Issue 44 in pylibnidaqmx: Status Code: -200479 During First Example

8 views
Skip to first unread message

pylibn...@googlecode.com

unread,
Aug 18, 2014, 11:53:25 AM8/18/14
to pylibnida...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 44 by andmmcki...@gmail.com: Status Code: -200479 During First
Example
http://code.google.com/p/pylibnidaqmx/issues/detail?id=44

I'm running the first example to troubleshoot why my more complex
AnalogOutputTask isn't running correctly. Here's the example:

from nidaqmx import AnalogOutputTask
import numpy as np

data = 9.95*np.sin(np.arange(1000, dtype=np.float64)*2*np.pi/1000)
task = AnalogOutputTask()
task.create_voltage_channel('Dev1/ao2', min_val=-10.0, max_val=10.0)
task.configure_timing_sample_clock(rate = 1000.0)
task.write(data)
task.start()
raw_input('Generating voltage continuously. Press Enter to interrupt..')
task.stop()
del task


What steps will reproduce the problem?
1. Running the first example in IPython.

What is the expected output? What do you see instead?
I would expect the AnalogOutputTask to produce a sine wave.


What version of the product are you using? On what operating system?

NidaqMX 9.8 and PyLibNidaqMX 0.2.0 (I think)

Please provide any additional information below.
Any help in understanding this issue would be appreciated! I know the
AnalogOutputTask works in other context, so there must be something about
this simple task that breaks a deeper issue I'm having with calling
AnalogOutputTask.

Thanks,
Andrew


--
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 18, 2014, 11:55:26 AM8/18/14
to pylibnida...@googlegroups.com

Comment #1 on issue 44 by andmmcki...@gmail.com: Status Code: -200479
Sorry I missed linking the error:

NIDAQmxRuntimeError: DAQmxStartTask(AnaloOutputTask('unnamedTask(0)'),):
Specified operation cannot be performed while the task is runing. Task Name:
_unnamedTask(0) Status Code: -200479

pylibn...@googlecode.com

unread,
Aug 18, 2014, 12:21:32 PM8/18/14
to pylibnida...@googlegroups.com

Comment #2 on issue 44 by andmmcki...@gmail.com: Status Code: -200479
Ran on Windows 7.
Reply all
Reply to author
Forward
0 new messages