07-02-2007 04:37 AM - edited 07-02-2007 04:37 AM
Message Edited by Support on 07-13-2007 01:28 PM
07-03-2007 05:59 AM
Hi,
Using a digital start trigger with this function call as you have in your code is not supported for a counter operation. For counter triggering you will need to use an Arm Start trigger instead. To do this you will need to set some trigger properties for the task you have - not just call one function.
So for a trigger on a rising digital edge from a PFI line, as you've tried to set up in your code using the DAQmxCfgDigEdgeStartTrig function, you will instead need to call the following:
DAQmxSetArmStartTrigType(TaskHandle taskHandle, int32 data) - where the data value will be one of two constants; either 'DAQmx_Val_DigEdge' or 'DAQmx_Val_None'
DAQmxSetDigEdgeArmStartTrigSrc(TaskHandle taskHandle, const char *data) - where the data value is the terminal for your trigger source.
DAQmxSetDigEdgeArmStartTrigEdge(TaskHandle taskHandle, int32 data) - where the data value will be one of two constants; either 'DAQmx_Val_Rising' or 'DAQmx_Val_Falling'
I hope this helps, let me know if you have any questions
Regards
Hannah
NIUK & Ireland
07-03-2007 09:34 AM - edited 07-03-2007 09:34 AM
Message Edited by Support on 07-13-2007 01:29 PM
07-03-2007 11:49 AM
07-05-2007 11:18 AM - edited 07-05-2007 11:18 AM
Message Edited by Support on 07-13-2007 01:29 PM