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