Hello All,
I am trying to do some buffered event counting using a 6602 card, DAQmx driver under Visual Basic 6.
Basically, I would like to replicate what Chris Erven did in Labview (see his posts) for photon time stamping.
I have a simulated photon source on counter 0. I am using the 80 MHz timebase to time tag the pulses on counter 1.
I post my code below.
On the 'DAQmxStartTask', I get a run-time error -89120 (fffea3e0) saying that the 'Source terminal to be routed could not be found on the device'.
I am puzzled about this. Can anybody help?
My code looks like this:
DAQmxErrChk DAQmxCreateTask("", taskHandleTS)
DAQmxErrChk DAQmxCreateCICountEdgesChan(taskHandleTS, "Dev1/ctr1", "", DAQmx_Val_Edge1_Rising, "0", DAQmx_Val_CountDirection1_CountUp)
DAQmxErrChk DAQmxSetCICountEdgesTerm(taskHandleTS, "Dev1/ctr1", "Dev1/80MHz Timebase")
DAQmxErrChk DAQmxCfgSampClkTiming(taskHandleTS, "/Dev1/Ctr0InternalOutput", 1, DAQmx_Val_Rising, DAQmx_Val_AcquisitionType_ContSamps, 10000)
DAQmxErrChk DAQmxStartTask(taskHandleTS)
Thank you in advance