Hi,
I am trying to measure both frequency and duty cycle of a signal using one of the PCI 6071E counters. I am using the semiperiod measurements and I already got an array of values but cannot determine which of those is the hi values and which is the low. I read I can set the DAQmx_CI_SemiPeriod_StartingEdge property to DAQmx_Val_Rising, but is not working. I am getting the following message "DAQmx_CI_SemiPeriod_StartingEdge is not supported on your device". However, in the Register Programming Manual for the 6071E is clearly stated that is possible to select the polarity of the channel.
This is my code:
DAQmxErrChk (DAQmxCreateTask("", TaskHandlePtr));
DAQmxErrChk (DAQmxCreateCISemiPeriodChan(*TaskHandlePtr, Channel, "", MinVal, MaxVal, DAQmx_Val_Seconds, ""));
DAQmxErrChk (DAQmxCfgImplicitTiming(*TaskHandlePtr,DAQmx_Val_ContSamps,2));
DAQmxErrChk (DAQmxSetChanAttribute(*TaskHandlePtr,"",DAQmx_CI_SemiPeriod_StartingEdge,DAQmx_Val_Rising));
Any ideas ?