-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support of other DAQmx channels #13
Comments
Can you send me the python code that works without Task. Le 10/04/2014 00:27, murenrb a écrit :
|
Clade, Let me know if I can help any other way. On Fri, Apr 11, 2014 at 4:25 AM, Pierre Cladé [email protected]:
Russell Muren Unless otherwise noted, please consider all information in this email |
I don't see any file attached to your message. Pierre Le 11/04/2014 14:22, murenrb a écrit :
|
Clade, ''' Created on Apr 7, 2014 @author: russellmuren ''' from PyDAQmx import * import numpy Declaration of variable passed by referencetaskHandle = TaskHandle() read = int32() data = numpy.zeros((1000,), dtype=numpy.float64) try:
,DAQmx_Val_DegC,DAQmx_Val_K_Type_TC,DAQmx_Val_BuiltIn,25.0,"")
DAQmxCreateAIVoltageChan(taskHandle,"cDAQ1Mod1/ai0","",DAQmx_Val_Cfg_Default,-10.0,10.0,DAQmx_Val_Volts,None)
,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1000)
1000,byref(read),None)
except DAQError as err:
finally:
On Mon, Apr 14, 2014 at 1:07 AM, Pierre Cladé [email protected]:
Russell Muren Unless otherwise noted, please consider all information in this email |
In order to use Task object, the following code should work. If it Pierre from PyDAQmx import * Declaration of variable passed by referenceread = int32() task = Task() DAQmx Start Codetask.StartTask(taskHandle) DAQmx Read Codetask.ReadAnalogF64(taskHandle,1000,10.0,DAQmx_Val_GroupByChannel,data,1000,byref(read),None) print "Acquired %d points"%read.value Le 14/04/2014 17:56, murenrb a écrit :
|
I am using PyDAQmx to measure temperatures via thermocouples and a NI 9213 board. I am using the normal thermocouple DAQmx call: http://zone.ni.com/reference/en-XX/help/370471W-01/daqmxcfunc/daqmxcreateaithrmcplchan/
This is working great when I don't use the Task object but I am wondering if these other channel types will be supported in the Task object in the future or if I can somehow add them manually. I am fairly new to Python, so this may be easy and I just don't know how to do it.
The text was updated successfully, but these errors were encountered: