Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

python and DAQmxSetTrigAttribute Error

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

 

0 Kudos
Message 1 of 2
(5,052 Views)
Duplicate post. 
Regards,
Jim Schwartz
0 Kudos
Message 2 of 2
(5,042 Views)