Hello Olivier-
Please check
this thread concerning semiperiod measurement issues.
Configuring an arm start trigger in CVI can be done with the following function calls:
DAQmxSetArmStartTrigType()
DAQmxSetDigEdgeArmStartTrigSrc()
DAQmxSetDigEdgeArmStartTrigEdge()
and you'll want to pass your input signal as the trigger source. The trigger edge will tell you whether you begin measuring on rising or falling edges.
I hope this helps!
gus....