kalganian
2008-05-21 13:10:07 UTC
greetings,i'm trying to read digital data using an external clock that is synched to the data. also, i want the acquisition to start after i give an asynchronous trigger. i'm using a usb6251 card with microsoft visual c. i tried to use DAQmxCfgDigEdgeStartTrig: DAQmxErrChk (DAQmxCreateTask("di_pfi0start_pfi1clk",&taskHandle)); DAQmxErrChk (DAQmxCreateDIChan(taskHandle,"Dev1/port0","",DAQmx_Val_ChanForAllLines)); DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev1/PFI0",DAQmx_Val_Rising)); DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev1/PFI1",1e6,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,1e5));however, this gives the following error: DAQmx Error: Measurements: Specified property is not supported by the device or is not applicable to the task. Property: DAQmx_StartTrig_Type Task Name: di_pfi0start_pfi1clk Status Code: -200452is the DAQmxCfgDigEdgeStartTrig function unable to trigger digital acquisition for my card? i have gotten it to trigger analog acquisition correctly. any help will be much appreciated.thanks,regards,kartik