01-04-2010 05:35 PM
When I try and call the DAQmxSetTrigAttribute function which is part of DAQmx(8.6.1) from python I receive the following error.
nidaq.DAQmxSetTrigAttribute( self.taskHandle,DAQmx_StartTrig_Retriggerable,True)
ValueError: Procedure probably called with too many arguments (12 bytes in excess)
The input parameters are defined as follows
TaskHandle = uInt32
DAQmx_StartTrig_Retriggerable = int32(6415)
I have been able to successfully call many of the other functions from the nidaq library but this one is being difficult. I believe that it is related to the function declaration which is as follows in the NIDAQmx.h
int32 __CFUNC_C DAQmxSetTrigAttribute (TaskHandle taskHandle, int32 attribute, ...);
I have tried specifying the input parameters with argtypes but, that didn't seem to work.
What is CFUNC_C and why the ... at the end of the declaration?
Please Help
Darren
01-05-2010 09:33 AM